From 5cf436546da6c3a2eb44677d89615d4bbf9baeaa Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 9 Nov 2011 14:46:06 +0000 Subject: [PATCH] don't show a tooltip when a site dialog text is not editable --- static/js/pandora/siteDialog.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/siteDialog.js b/static/js/pandora/siteDialog.js index 490780e9..f635546e 100644 --- a/static/js/pandora/siteDialog.js +++ b/static/js/pandora/siteDialog.js @@ -33,7 +33,8 @@ pandora.ui.siteDialog = function(section) { Ox.Editable({ clickLink: pandora.clickLink, editable: pandora.site.capabilities.canEditSitePages[pandora.user.level], - tooltip: 'Doubleclick to edit', + tooltip: pandora.site.capabilities.canEditSitePages[pandora.user.level] + ? 'Doubleclick to edit' : '', type: 'textarea', value: result.data.body }) @@ -77,7 +78,7 @@ pandora.ui.siteDialog = function(section) { .html( '' + name + '
' + risk[i] + ' Risk' - + (i % 3 == 0 ? '
of ' : ' of
') + + (risk[i].length > 6 ? '
of ' : ' of
') + 'Legal Action
' ) .appendTo($column);