Only update wanted if it's empty

This commit is contained in:
Ruud
2011-06-04 21:34:44 +02:00
parent a0b3e13d81
commit 452fdef136
+10 -5
View File
@@ -8,11 +8,15 @@ Page.Wanted = new Class({
indexAction: function(param){
var self = this;
self.list = new MovieList({
'status': 'active',
'actions': Wanted.Action
});
$(self.list).inject(self.el);
if(!self.list){
self.list = new MovieList({
'status': 'active',
'actions': Wanted.Action
});
$(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 = {
'Action': {
'IMBD': IMDBAction
//,'releases': ReleaseAction
}
}