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
+14 -1
View File
@@ -29,7 +29,20 @@ Page.Manage = new Class({
'identifier': 'manage',
'status': 'done',
'actions': MovieActions,
'menu': [self.refresh_button, self.refresh_quick]
'menu': [self.refresh_button, self.refresh_quick],
'on_empty_element': new Element('div.empty_manage').adopt(
new Element('div', {
'text': 'Seems like you don\'t have anything in your library yet.'
}),
new Element('div', {
'text': 'Add your existing movie folders in '
}).adopt(
new Element('a', {
'text': 'Settings > Manage',
'href': App.createUrl('settings/manage')
})
)
)
});
$(self.list).inject(self.el);
}
+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);