From b11d8edd2d8e7f002e95695d72be0f60d5e35d4f Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 24 Aug 2011 22:15:50 +0000 Subject: [PATCH] improved formatting of item or view does not exist messages --- static/js/pandora/ui/item.js | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/static/js/pandora/ui/item.js b/static/js/pandora/ui/item.js index ee4efe29..bccec4f7 100644 --- a/static/js/pandora/ui/item.js +++ b/static/js/pandora/ui/item.js @@ -19,18 +19,28 @@ pandora.ui.item = function() { pandora.URL.set(result.data.items[0].id); } else { pandora.$ui.contentPanel.replaceElement(1, - Ox.Element().html( - 'Sorry, we can\'t find the ' + pandora.site.itemName.singular + ' you\'re looking for.')); + Ox.Element() + .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 && ['clips', 'map', 'player', 'timeline'].indexOf(pandora.user.ui.itemView)>-1) { pandora.$ui.contentPanel.replaceElement(1, - Ox.Element().css({margin: '16px'}).html( - 'We are sorry, "' + result.data.title + - '" does not have a '+pandora.user.ui.itemView + - ' view right now.')); + Ox.Element() + .css({marginTop: '32px', fontSize: '12px', textAlign: 'center'}) + .html( + 'Sorry, ' + result.data.title + + ' currently doesn\'t have a ' + + pandora.user.ui.itemView + ' view.' + ) + ); } else if (pandora.user.ui.itemView == 'calendar') { pandora.$ui.contentPanel.replaceElement(1, Ox.Element().html('Calendar')); } else if (pandora.user.ui.itemView == 'clips') {