diff --git a/apps/common/main/lib/component/HintManager.js b/apps/common/main/lib/component/HintManager.js index c5d774123..df47ad4a7 100644 --- a/apps/common/main/lib/component/HintManager.js +++ b/apps/common/main/lib/component/HintManager.js @@ -463,7 +463,9 @@ Common.UI.HintManager = new(function() { } } } - if (curr.prop('id') === 'btn-goback' || curr.closest('.btn-slot').prop('id') === 'slot-btn-options' || curr.prop('id') === 'left-btn-thumbs' || curr.hasClass('scroll')) { + if (curr.prop('id') === 'btn-goback' || curr.closest('.btn-slot').prop('id') === 'slot-btn-options' || + curr.closest('.btn-slot').prop('id') === 'slot-btn-mode' || curr.prop('id') === 'btn-favorite' || curr.parent().prop('id') === 'tlb-box-users' || + curr.prop('id') === 'left-btn-thumbs' || curr.hasClass('scroll')) { _resetToDefault(); return; } diff --git a/apps/common/main/lib/view/Header.js b/apps/common/main/lib/view/Header.js index 780ed9d52..c50b3863b 100644 --- a/apps/common/main/lib/view/Header.js +++ b/apps/common/main/lib/view/Header.js @@ -476,14 +476,14 @@ define([ getPanel: function (role, config) { var me = this; - function createTitleButton(iconid, slot, disabled) { + function createTitleButton(iconid, slot, disabled, hintDirection, hintOffset) { return (new Common.UI.Button({ cls: 'btn-header', iconCls: iconid, disabled: disabled === true, dataHint:'0', - dataHintDirection: 'left', - dataHintOffset: '10, 10' + dataHintDirection: hintDirection ? hintDirection : 'left', + dataHintOffset: hintOffset ? hintOffset : '10, 10' })).render(slot); } @@ -546,7 +546,7 @@ define([ if (!config.isEdit || config.customization && !!config.customization.compactHeader) { if (config.user.guest && config.canRenameAnonymous) - me.btnUserName = createTitleButton('toolbar__icon icon--inverse btn-user', $html.findById('#slot-btn-user-name')); + me.btnUserName = createTitleButton('toolbar__icon icon--inverse btn-user', $html.findById('#slot-btn-user-name'), undefined, 'bottom', 'big'); else { me.elUserName = $html.find('.btn-current-user'); me.elUserName.removeClass('hidden'); @@ -562,7 +562,7 @@ define([ if ( !!window.DE ) { var mode_cls = Common.UI.Themes.isContentThemeDark() ? 'btn-mode-light' : 'btn-mode-dark'; - me.btnContentMode = createTitleButton('toolbar__icon icon--inverse ' + mode_cls, $html.findById('#slot-btn-mode')); + me.btnContentMode = createTitleButton('toolbar__icon icon--inverse ' + mode_cls, $html.findById('#slot-btn-mode'), undefined, 'bottom', 'big'); me.btnContentMode.setVisible(Common.UI.Themes.isDarkTheme()); }