Empty list styling

This commit is contained in:
Ruud
2012-10-13 12:00:47 +02:00
parent 19ddd03204
commit 2cd887b70a
5 changed files with 40 additions and 23 deletions
+1 -10
View File
@@ -18,9 +18,6 @@ Page.Wanted = new Class({
}
});
// See if userscript can be installed
// Wanted movies
self.wanted = new MovieList({
'identifier': 'wanted',
@@ -28,13 +25,7 @@ Page.Wanted = new Class({
'actions': MovieActions,
'add_new': true,
'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
})
'on_empty_element': App.createUserscriptButtons().addClass('empty_wanted')
});
$(self.wanted).inject(self.el);