improved formatting of item or view does not exist messages
This commit is contained in:
parent
5310584923
commit
b11d8edd2d
1 changed files with 16 additions and 6 deletions
|
@ -19,18 +19,28 @@ pandora.ui.item = function() {
|
||||||
pandora.URL.set(result.data.items[0].id);
|
pandora.URL.set(result.data.items[0].id);
|
||||||
} else {
|
} else {
|
||||||
pandora.$ui.contentPanel.replaceElement(1,
|
pandora.$ui.contentPanel.replaceElement(1,
|
||||||
Ox.Element().html(
|
Ox.Element()
|
||||||
'Sorry, we can\'t find the ' + pandora.site.itemName.singular + ' you\'re looking for.'));
|
.css({marginTop: '32px', fontSize: '12px', textAlign: 'center'})
|
||||||
|
.html(
|
||||||
|
'Sorry, we can\'t find the '
|
||||||
|
+ pandora.site.itemName.singular.toLowerCase()
|
||||||
|
+ ' you\'re looking for.'
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (!result.data.rendered &&
|
} else if (!result.data.rendered &&
|
||||||
['clips', 'map',
|
['clips', 'map',
|
||||||
'player', 'timeline'].indexOf(pandora.user.ui.itemView)>-1) {
|
'player', 'timeline'].indexOf(pandora.user.ui.itemView)>-1) {
|
||||||
pandora.$ui.contentPanel.replaceElement(1,
|
pandora.$ui.contentPanel.replaceElement(1,
|
||||||
Ox.Element().css({margin: '16px'}).html(
|
Ox.Element()
|
||||||
'We are sorry, "' + result.data.title +
|
.css({marginTop: '32px', fontSize: '12px', textAlign: 'center'})
|
||||||
'" does not have a '+pandora.user.ui.itemView +
|
.html(
|
||||||
' view right now.'));
|
'Sorry, <i>' + result.data.title
|
||||||
|
+ '</i> currently doesn\'t have a '
|
||||||
|
+ pandora.user.ui.itemView + ' view.'
|
||||||
|
)
|
||||||
|
);
|
||||||
} else if (pandora.user.ui.itemView == 'calendar') {
|
} else if (pandora.user.ui.itemView == 'calendar') {
|
||||||
pandora.$ui.contentPanel.replaceElement(1, Ox.Element().html('Calendar'));
|
pandora.$ui.contentPanel.replaceElement(1, Ox.Element().html('Calendar'));
|
||||||
} else if (pandora.user.ui.itemView == 'clips') {
|
} else if (pandora.user.ui.itemView == 'clips') {
|
||||||
|
|
Loading…
Reference in a new issue