diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-12-17 21:28:10 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-12-17 21:28:10 +0100 |
commit | c19a05c355760e1e0782ccb434eae4459baaf4cd (patch) | |
tree | 0e166b6917261101bb38fe35cb3bb072ee9923fb /module/web/static | |
parent | updated lots of libraries (diff) | |
download | pyload-c19a05c355760e1e0782ccb434eae4459baaf4cd.tar.xz |
small api changes
Diffstat (limited to 'module/web/static')
-rw-r--r-- | module/web/static/js/models/File.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/module/web/static/js/models/File.js b/module/web/static/js/models/File.js index 71aa2b84f..66d9ef050 100644 --- a/module/web/static/js/models/File.js +++ b/module/web/static/js/models/File.js @@ -26,6 +26,10 @@ define(['jquery', 'backbone', 'underscore'], function($, Backbone, _) { // Any time a model attribute is set, this method is called validate: function(attrs) { + }, + + isDownload : function() { + return this.has('download') } }); |