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);
}