forked from 0x2620/pandora
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({
|
||||
element: '<img>',
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue