diff options
author | 2013-02-20 17:05:30 +0100 | |
---|---|---|
committer | 2013-02-20 17:05:30 +0100 | |
commit | d4fabd4878050fdfea4e88dfe54eb90b4e35690f (patch) | |
tree | c276e53d6272a2fc9de57d01b4b4b7b66891a66e /module/web/static/js/models/File.js | |
parent | more animation for dashboard (diff) | |
download | pyload-d4fabd4878050fdfea4e88dfe54eb90b4e35690f.tar.xz |
tooltips and other improvements on webui
Diffstat (limited to 'module/web/static/js/models/File.js')
-rw-r--r-- | module/web/static/js/models/File.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/module/web/static/js/models/File.js b/module/web/static/js/models/File.js index 66d9ef050..efea23254 100644 --- a/module/web/static/js/models/File.js +++ b/module/web/static/js/models/File.js @@ -23,13 +23,24 @@ define(['jquery', 'backbone', 'underscore'], function($, Backbone, _) { }, + destroy: function() { + + }, + + restart: function(options) { + options || (options = {}); + options.url = 'api/restartFile/' + this.get('fid'); + + return $.ajax(options); + }, + // Any time a model attribute is set, this method is called validate: function(attrs) { }, isDownload : function() { - return this.has('download') + return this.has('download'); } }); |