diff options
Diffstat (limited to 'module/web/app/scripts/models/File.js')
-rw-r--r-- | module/web/app/scripts/models/File.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/web/app/scripts/models/File.js b/module/web/app/scripts/models/File.js index 524637cb4..3beb7f270 100644 --- a/module/web/app/scripts/models/File.js +++ b/module/web/app/scripts/models/File.js @@ -1,4 +1,5 @@ define(['jquery', 'backbone', 'underscore', 'app', 'utils/apitypes'], function($, Backbone, _, App, Api) { + 'use strict'; var Finished = [Api.DownloadStatus.Finished, Api.DownloadStatus.Skipped]; var Failed = [Api.DownloadStatus.Failed, Api.DownloadStatus.Aborted, Api.DownloadStatus.TempOffline, Api.DownloadStatus.Offline]; @@ -46,7 +47,7 @@ define(['jquery', 'backbone', 'underscore', 'app', 'utils/apitypes'], function($ options = App.apiRequest( 'deleteFiles/[' + this.get('fid') + ']', null, options); - options.method = "post"; + options.method = 'post'; return Backbone.Model.prototype.destroy.call(this, options); }, |