summaryrefslogtreecommitdiffstats
path: root/module/web/static/js/models/Progress.js
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-12-20 15:33:01 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-12-20 15:33:01 +0100
commitceb59ee0739546368135b0d86a69b17c92bfbccf (patch)
tree863b70e281f8aa833d2a4a72a61f25113dd9b8e3 /module/web/static/js/models/Progress.js
parentseparated handlebars init (diff)
downloadpyload-ceb59ee0739546368135b0d86a69b17c92bfbccf.tar.xz
added models and collections for progress
Diffstat (limited to 'module/web/static/js/models/Progress.js')
-rw-r--r--module/web/static/js/models/Progress.js35
1 files changed, 35 insertions, 0 deletions
diff --git a/module/web/static/js/models/Progress.js b/module/web/static/js/models/Progress.js
new file mode 100644
index 000000000..ebbe34862
--- /dev/null
+++ b/module/web/static/js/models/Progress.js
@@ -0,0 +1,35 @@
+define(['jquery', 'backbone', 'underscore'], function($, Backbone, _) {
+
+ return Backbone.Model.extend({
+
+// TODO
+// idAttribute: 'fid',
+
+ defaults: {
+ plugin: null,
+ name: null,
+ statusmsg: -1,
+ eta: -1,
+ done: -1,
+ total: -1,
+ download: null
+ },
+
+
+ // Model Constructor
+ initialize: function() {
+
+ },
+
+ // Any time a model attribute is set, this method is called
+ validate: function(attrs) {
+
+ },
+
+ isDownload : function() {
+ return this.has('download')
+ }
+
+ });
+
+}); \ No newline at end of file