fix edit tooltip in info view, fixes #666
This commit is contained in:
parent
7130ce2912
commit
48f48bffe6
1 changed files with 10 additions and 1 deletions
|
@ -51,7 +51,11 @@ pandora.ui.infoView = function(data) {
|
||||||
|
|
||||||
$icon = Ox.Element({
|
$icon = Ox.Element({
|
||||||
element: '<img>',
|
element: '<img>',
|
||||||
tooltip: canEdit ? 'Doubleclick to edit' : ''
|
tooltip: canEdit ? (
|
||||||
|
!ui.showIconBrowser
|
||||||
|
? 'Doubleclick to edit icon'
|
||||||
|
: 'Doubleclick to hide icons'
|
||||||
|
) : ''
|
||||||
})
|
})
|
||||||
.attr({
|
.attr({
|
||||||
src: '/' + data.id + '/' + (
|
src: '/' + data.id + '/' + (
|
||||||
|
@ -488,6 +492,11 @@ pandora.ui.infoView = function(data) {
|
||||||
$info.animate({
|
$info.animate({
|
||||||
left: ui.showIconBrowser ? 0 : -listWidth + 'px'
|
left: ui.showIconBrowser ? 0 : -listWidth + 'px'
|
||||||
}, 250);
|
}, 250);
|
||||||
|
$icon.options({
|
||||||
|
tooltip: !pandora.user.ui.showIconBrowser
|
||||||
|
? 'Doubleclick to edit icon'
|
||||||
|
: 'Doubleclick to hide icons'
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
renderList();
|
renderList();
|
||||||
|
|
Loading…
Reference in a new issue