diff options
Diffstat (limited to 'module/web/app/scripts/collections')
| -rw-r--r-- | module/web/app/scripts/collections/AccountList.js | 24 | ||||
| -rw-r--r-- | module/web/app/scripts/collections/FileList.js | 18 | ||||
| -rw-r--r-- | module/web/app/scripts/collections/InteractionList.js | 49 | ||||
| -rw-r--r-- | module/web/app/scripts/collections/PackageList.js | 16 | ||||
| -rw-r--r-- | module/web/app/scripts/collections/ProgressList.js | 18 | 
5 files changed, 0 insertions, 125 deletions
| diff --git a/module/web/app/scripts/collections/AccountList.js b/module/web/app/scripts/collections/AccountList.js deleted file mode 100644 index bfc2af5a3..000000000 --- a/module/web/app/scripts/collections/AccountList.js +++ /dev/null @@ -1,24 +0,0 @@ -define(['jquery', 'backbone', 'underscore', 'app', 'models/Account'], function($, Backbone, _, App, Account) { -    'use strict'; - -    return Backbone.Collection.extend({ - -        model: Account, - -        comparator: function(account) { -            return account.get('plugin'); -        }, - -        initialize: function() { - -        }, - -        fetch: function(options) { -            // TODO: refresh options? -            options = App.apiRequest('getAccounts/false', null, options); -            return Backbone.Collection.prototype.fetch.call(this, options); -        } - -    }); - -});
\ No newline at end of file diff --git a/module/web/app/scripts/collections/FileList.js b/module/web/app/scripts/collections/FileList.js deleted file mode 100644 index 873f4c0e3..000000000 --- a/module/web/app/scripts/collections/FileList.js +++ /dev/null @@ -1,18 +0,0 @@ -define(['jquery', 'backbone', 'underscore', 'models/File'], function($, Backbone, _, File) { -    'use strict'; - -    return Backbone.Collection.extend({ - -        model: File, - -        comparator: function(file) { -            return file.get('fileorder'); -        }, - -        initialize: function() { - -        } - -    }); - -});
\ No newline at end of file diff --git a/module/web/app/scripts/collections/InteractionList.js b/module/web/app/scripts/collections/InteractionList.js deleted file mode 100644 index 24f8b9248..000000000 --- a/module/web/app/scripts/collections/InteractionList.js +++ /dev/null @@ -1,49 +0,0 @@ -define(['jquery', 'backbone', 'underscore', 'app', 'models/InteractionTask'], -    function($, Backbone, _, App, InteractionTask) { -        'use strict'; - -        return Backbone.Collection.extend({ - -            model: InteractionTask, - -            comparator: function(task) { -                return task.get('iid'); -            }, - -            fetch: function(options) { -                options = App.apiRequest('getInteractionTasks/0', null, options); -                var self = this; -                options.success = function(data) { -                    self.set(data); -                }; - -                return $.ajax(options); -            }, - -            toJSON: function() { -                var data = {queries: 0, notifications: 0}; - -                this.map(function(task) { -                    if (task.isNotification()) -                        data.notifications++; -                    else -                        data.queries++; -                }); - -                return data; -            }, - -            // a task is waiting for attention (no notification) -            hasTaskWaiting: function() { -                var tasks = 0; -                this.map(function(task) { -                    if (!task.isNotification()) -                        tasks++; -                }); - -                return tasks > 0; -            } - -        }); - -    });
\ No newline at end of file diff --git a/module/web/app/scripts/collections/PackageList.js b/module/web/app/scripts/collections/PackageList.js deleted file mode 100644 index 7bee861a4..000000000 --- a/module/web/app/scripts/collections/PackageList.js +++ /dev/null @@ -1,16 +0,0 @@ -define(['jquery', 'backbone', 'underscore', 'models/Package'], function($, Backbone, _, Package) { -    'use strict'; - -    return Backbone.Collection.extend({ - -        model: Package, - -        comparator: function(pack) { -            return pack.get('packageorder'); -        }, - -        initialize: function() { -        } - -    }); -});
\ No newline at end of file diff --git a/module/web/app/scripts/collections/ProgressList.js b/module/web/app/scripts/collections/ProgressList.js deleted file mode 100644 index 51849d8de..000000000 --- a/module/web/app/scripts/collections/ProgressList.js +++ /dev/null @@ -1,18 +0,0 @@ -define(['jquery', 'backbone', 'underscore', 'models/Progress'], function($, Backbone, _, Progress) { -    'use strict'; - -    return Backbone.Collection.extend({ - -        model: Progress, - -        comparator: function(progress) { -            return progress.get('eta'); -        }, - -        initialize: function() { - -        } - -    }); - -});
\ No newline at end of file | 
