mrkipling/maraschino — pull request #5 by gugahoi (2011-11-13 02:49:47+00:00)
Title: Resume/Pause Sabnzbd Module

Just a little add again. I think I'm starting to get familiarised with the code a bit more. This is how it works but it still has one thing the I'd like to change: when Paused is clicked it resumes the queue and when Downloading is clicked it pauses the queue. It does it via an ajax call to /sabnzbd/ which has the function that handles the request. At the moment this function returns the reply from the request and consequently, when the xhr is successful the ajax function alerts the data returned (when successful it is an 'ok' string). This can hopefully be modified so that it updates the value from Downloading to Paused and the other way around.