From 6232db5a1d3b8b5e4412af67d5bc7ca65f94333c Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 12 Mar 2013 12:49:42 +0100 Subject: renamed most events, push events to webui --- module/web/static/js/models/File.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'module/web/static/js/models/File.js') 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 -- cgit v1.2.3