summaryrefslogtreecommitdiffstats
path: root/module/web/static/js/models/File.js
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/static/js/models/File.js')
-rw-r--r--module/web/static/js/models/File.js7
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