Only update wanted if it's empty

This commit is contained in:
Ruud committed 2011-06-04 21:34:44 +02:00
1 parent a0b3e13d81
commit 452fdef136
1 file changed
+5
@@ -8,12 +8,16 @@ Page.Wanted = new Class({
indexAction: function(param){ indexAction: function(param){
var self = this; var self = this;
if(!self.list){
self.list = new MovieList({ self.list = new MovieList({
'status': 'active', 'status': 'active',
'actions': Wanted.Action 'actions': Wanted.Action
}); });
$(self.list).inject(self.el); $(self.list).inject(self.el);
App.addEvent('library.update', self.list.update.bind(self.list))
}
} }
}); });
@@ -21,6 +25,7 @@ Page.Wanted = new Class({
var Wanted = { var Wanted = {
'Action': { 'Action': {
'IMBD': IMDBAction 'IMBD': IMDBAction
//,'releases': ReleaseAction
} }
} }