summaryrefslogtreecommitdiffstats
path: root/module/web/static
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-12-17 21:28:10 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-12-17 21:28:10 +0100
commitc19a05c355760e1e0782ccb434eae4459baaf4cd (patch)
tree0e166b6917261101bb38fe35cb3bb072ee9923fb /module/web/static
parentupdated lots of libraries (diff)
downloadpyload-c19a05c355760e1e0782ccb434eae4459baaf4cd.tar.xz
small api changes
Diffstat (limited to 'module/web/static')
-rw-r--r--module/web/static/js/models/File.js4
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')
}
});