From 3e84ea823766adef12946de90b33e62a84b52c46 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 13 Dec 2013 18:38:53 +0100 Subject: added new file states --- pyload/web/app/scripts/models/File.js | 2 +- pyload/web/app/scripts/models/Package.js | 2 +- pyload/web/app/scripts/utils/apitypes.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'pyload/web/app') diff --git a/pyload/web/app/scripts/models/File.js b/pyload/web/app/scripts/models/File.js index 562e6b0ae..5a70d8e2f 100644 --- a/pyload/web/app/scripts/models/File.js +++ b/pyload/web/app/scripts/models/File.js @@ -45,7 +45,7 @@ define(['jquery', 'backbone', 'underscore', 'app', 'utils/apitypes'], function($ destroy: function(options) { // also not working when using data options = App.apiRequest( - 'deleteFiles/[' + this.get('fid') + ']', + 'removeFiles/[' + this.get('fid') + ']', null, options); options.method = 'post'; diff --git a/pyload/web/app/scripts/models/Package.js b/pyload/web/app/scripts/models/Package.js index a1828ed67..463ec8c13 100644 --- a/pyload/web/app/scripts/models/Package.js +++ b/pyload/web/app/scripts/models/Package.js @@ -100,7 +100,7 @@ define(['jquery', 'backbone', 'underscore', 'app', 'utils/apitypes', 'collection destroy: function(options) { // TODO: Not working when using data?, array seems to break it options = App.apiRequest( - 'deletePackages/[' + this.get('pid') + ']', + 'removePackages/[' + this.get('pid') + ']', null, options); options.method = 'post'; diff --git a/pyload/web/app/scripts/utils/apitypes.js b/pyload/web/app/scripts/utils/apitypes.js index cb094a05b..12ad6b78d 100644 --- a/pyload/web/app/scripts/utils/apitypes.js +++ b/pyload/web/app/scripts/utils/apitypes.js @@ -4,7 +4,7 @@ define([], function() { 'use strict'; return { DownloadState: {'Failed': 3, 'All': 0, 'Unmanaged': 4, 'Finished': 1, 'Unfinished': 2}, - DownloadStatus: {'NotPossible': 13, 'Downloading': 10, 'NA': 0, 'Processing': 15, 'Waiting': 9, 'Decrypting': 14, 'Paused': 4, 'Failed': 7, 'Finished': 5, 'Skipped': 6, 'Unknown': 17, 'Aborted': 12, 'Online': 2, 'TempOffline': 11, 'Offline': 1, 'Custom': 16, 'Starting': 8, 'Queued': 3}, + DownloadStatus: {'NotPossible': 13, 'FileMismatch': 15, 'Downloading': 10, 'Missing': 14, 'NA': 0, 'Processing': 17, 'Waiting': 9, 'Decrypting': 16, 'Paused': 4, 'Failed': 7, 'Finished': 5, 'Skipped': 6, 'Unknown': 19, 'Aborted': 12, 'Online': 2, 'TempOffline': 11, 'Offline': 1, 'Custom': 18, 'Starting': 8, 'Queued': 3}, FileStatus: {'Remote': 2, 'Ok': 0, 'Missing': 1}, InputType: {'PluginList': 13, 'Multiple': 11, 'Int': 2, 'NA': 0, 'Time': 7, 'List': 12, 'Bool': 8, 'File': 3, 'Text': 1, 'Table': 14, 'Folder': 4, 'Password': 6, 'Click': 9, 'Select': 10, 'Textbox': 5}, Interaction: {'Captcha': 2, 'All': 0, 'Query': 4, 'Notification': 1}, -- cgit v1.2.3