Empty list styling
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user