summaryrefslogtreecommitdiffstats
path: root/module/web/static/js
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/static/js')
-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')
}
});