From 48f48bffe65daa400e50c7d474e4179aee9e4cd0 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 20 Mar 2012 11:18:48 +0000 Subject: [PATCH] fix edit tooltip in info view, fixes #666 --- static/js/pandora/infoView.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/infoView.js b/static/js/pandora/infoView.js index d5fbb910..6e2da972 100644 --- a/static/js/pandora/infoView.js +++ b/static/js/pandora/infoView.js @@ -51,7 +51,11 @@ pandora.ui.infoView = function(data) { $icon = Ox.Element({ element: '', - tooltip: canEdit ? 'Doubleclick to edit' : '' + tooltip: canEdit ? ( + !ui.showIconBrowser + ? 'Doubleclick to edit icon' + : 'Doubleclick to hide icons' + ) : '' }) .attr({ src: '/' + data.id + '/' + ( @@ -488,6 +492,11 @@ pandora.ui.infoView = function(data) { $info.animate({ left: ui.showIconBrowser ? 0 : -listWidth + 'px' }, 250); + $icon.options({ + tooltip: !pandora.user.ui.showIconBrowser + ? 'Doubleclick to edit icon' + : 'Doubleclick to hide icons' + }); } }); renderList();