summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/scripts/models/LinkStatus.js
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/web/app/scripts/models/LinkStatus.js')
-rw-r--r--pyload/web/app/scripts/models/LinkStatus.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/pyload/web/app/scripts/models/LinkStatus.js b/pyload/web/app/scripts/models/LinkStatus.js
new file mode 100644
index 000000000..2be1ce368
--- /dev/null
+++ b/pyload/web/app/scripts/models/LinkStatus.js
@@ -0,0 +1,22 @@
+define(['jquery', 'backbone', 'underscore', 'app', 'utils/apitypes'],
+ function($, Backbone, _, App, Api) {
+ 'use strict';
+
+ return Backbone.Model.extend({
+
+ idAttribute: 'url',
+
+ defaults: {
+ name: '',
+ plugin: '',
+ size: -1,
+ status: Api.DownloadStatus.Queued
+ },
+
+ destroy: function() {
+ var model = this;
+ model.trigger('destroy', model, model.collection);
+ }
+
+ });
+ }); \ No newline at end of file