Status Conditional addition

in
Subscribe to Status Conditional addition 2 posts, 2 voices



Touching Virus User

With the current script, calls will be made to remove files that are currently uploading or downloading - something the official delete functionality on Rapidshare doesn't allow. While these files will not be removed, the call to the script will be counted towards the spam protection measures and could result in rapidshare blocking your access for 2 minutes which is a real annoyance.

Also, the Delete All button should maybe be Delete Completed Jobs if this change is implemented?

Code Changes:

$(".dtabelle a").each(function(i, a)
{
    var self = $(this);
    var href_split = $(this).attr('href').split("'");
    var id = href_split[1];
    var status = href_split[3];
				
    // Only remove the jobs if the status code isn't 0, 1 or 4 (Downloading... Uploading to Rapidshare etc)
    if (status != 0 && status != 1 && status != 4)
    {
        var param = "remotegets=1&killjobs=1&killjob-" + id + "=1";
        $.ajax({
            type: "POST",
            data: param,
            success: function(html)
            { 
                // Let's parse the response!
                self.parents('tr').empty();
            }
       });
    }
});

 
lifetalk Script's Author

Not a bad suggestion. Thanks Touching Virus.
I'll test the code locally though, before I practically implement it.

:)

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel