Only update wanted if it's empty
This commit is contained in:
@@ -8,11 +8,15 @@ Page.Wanted = new Class({
|
|||||||
indexAction: function(param){
|
indexAction: function(param){
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
self.list = new MovieList({
|
if(!self.list){
|
||||||
'status': 'active',
|
self.list = new MovieList({
|
||||||
'actions': Wanted.Action
|
'status': 'active',
|
||||||
});
|
'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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user