diff options
author | 2013-03-12 12:49:42 +0100 | |
---|---|---|
committer | 2013-03-12 12:49:42 +0100 | |
commit | 6232db5a1d3b8b5e4412af67d5bc7ca65f94333c (patch) | |
tree | 02a95e1216ace355d84a9704fb9070bd744b17c2 /module/web/static/js/models/File.js | |
parent | added missing file (diff) | |
download | pyload-6232db5a1d3b8b5e4412af67d5bc7ca65f94333c.tar.xz |
renamed most events, push events to webui
Diffstat (limited to 'module/web/static/js/models/File.js')
-rw-r--r-- | module/web/static/js/models/File.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/module/web/static/js/models/File.js b/module/web/static/js/models/File.js index fa0945713..2ac6c05f5 100644 --- a/module/web/static/js/models/File.js +++ b/module/web/static/js/models/File.js @@ -31,6 +31,13 @@ define(['jquery', 'backbone', 'underscore', 'utils/apitypes'], function($, Backb }, + fetch: function(options){ + options || (options = {}); + options.url = 'api/getFileInfo/' + this.get('fid'); + + return Backbone.Model.prototype.fetch.call(this, options); + }, + destroy: function(options) { options || (options = {}); // TODO: as post data |