From 5fb2a11f0f469f10de85bde4507061b99d778852 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 5 Mar 2013 06:50:01 +0000 Subject: [PATCH] update help dialog --- static/js/pandora/helpDialog.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/helpDialog.js b/static/js/pandora/helpDialog.js index 61f95f4d5..2c7800653 100644 --- a/static/js/pandora/helpDialog.js +++ b/static/js/pandora/helpDialog.js @@ -72,11 +72,17 @@ pandora.ui.helpDialog = function() { Ox.get('/static/html/help.html', function(html) { - var $html = $('
').html(html); + pandora.site.itemName = Ox.map(pandora.site.itemName, function(v) { + return v.toLowerCase(); + }); + var $html = $('
').html(Ox.formatString(html, pandora.site)); + pandora.site.itemName = Ox.map(pandora.site.itemName, function(v) { + return Ox.toTitleCase(v); + }); pandora.site.help.forEach(function(section) { var html = $html.find('#' + section.id).html(); - text[section.id] = '

' + section.title + '


\n' + html; + text[section.id] = '

' + section.title + '

\n' + html; }); $list = Ox.TableList({ @@ -127,6 +133,11 @@ pandora.ui.helpDialog = function() { that.select = function(id) { $text.html(text[id]); + $text.find('td:first-child').css({ + height: '16px', + paddingRight: '8px', + textAlign: 'right' + }); return that; }