You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
Page.Manage = new Class({
|
|
|
|
|
|
|
|
Extends: PageBase,
|
|
|
|
|
|
|
|
name: 'manage',
|
|
|
|
title: 'Do stuff to your existing movies!',
|
|
|
|
|
|
|
|
indexAction: function(param){
|
|
|
|
var self = this;
|
|
|
|
|
|
|
|
if(!self.list){
|
|
|
|
self.refresh_button = new Element('a.icon.refresh', {
|
|
|
|
'text': 'Refresh',
|
|
|
|
'events':{
|
|
|
|
'click': self.refresh.bind(self)
|
|
|
|
}
|
|
|
|
}).inject(self.el);
|
|
|
|
|
|
|
|
self.list = new MovieList({
|
|
|
|
'status': 'done',
|
|
|
|
'navigation': true,
|
|
|
|
'actions': MovieActions
|
|
|
|
});
|
|
|
|
$(self.list).inject(self.el);
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
refresh: function(){
|
|
|
|
var self = this;
|
|
|
|
|
|
|
|
Api.request('manage.update')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|