diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-03-31 13:11:58 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-03-31 13:11:58 +0200 |
commit | 53bc0477f9b0217c87676103361b1633e9b12f19 (patch) | |
tree | c6461ab1c292b39e49e1a5924b75761b588b25ba /module/web/static/js/collections | |
parent | separate addon and plugin configs (diff) | |
download | pyload-53bc0477f9b0217c87676103361b1633e9b12f19.tar.xz |
added account page
Diffstat (limited to 'module/web/static/js/collections')
-rw-r--r-- | module/web/static/js/collections/AccountList.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/module/web/static/js/collections/AccountList.js b/module/web/static/js/collections/AccountList.js new file mode 100644 index 000000000..1bcf87c1e --- /dev/null +++ b/module/web/static/js/collections/AccountList.js @@ -0,0 +1,23 @@ +define(['jquery', 'backbone', 'underscore', 'app', 'models/Account'], function($, Backbone, _, App, Account) { + + 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 |