Show "how to" when wanted list is empty

This commit is contained in:
Ruud
2012-10-12 23:34:39 +02:00
parent 84f5dcc134
commit 1011e2e9b8
5 changed files with 59 additions and 3 deletions
+11 -1
View File
@@ -18,13 +18,23 @@ Page.Wanted = new Class({
}
});
// See if userscript can be installed
// Wanted movies
self.wanted = new MovieList({
'identifier': 'wanted',
'status': 'active',
'actions': MovieActions,
'add_new': true,
'menu': [self.manual_search]
'menu': [self.manual_search],
'on_empty_element': App.createUserscriptButtons().setStyles({
'background-image': "url('"+Api.createUrl('static/images/emptylist.png')+"')",
'height': 750,
'width': 800,
'padding-top': 260,
'margin-top': -50
})
});
$(self.wanted).inject(self.el);