From 2aedc7934d5578a4c52b01b4ec251819fb862bca Mon Sep 17 00:00:00 2001 From: "Julia.Radzhabova" Date: Wed, 1 Oct 2025 12:24:28 +0300 Subject: [PATCH] Hide tips --- .../main/app/controller/Toolbar.js | 12 ++--- apps/pdfeditor/main/app/controller/Main.js | 4 +- apps/pdfeditor/main/app/controller/Toolbar.js | 40 ++++++++-------- apps/pdfeditor/main/app/controller/ViewTab.js | 2 +- .../pdfeditor/main/app/view/PageThumbnails.js | 4 +- .../main/app/controller/Animation.js | 14 +++--- .../main/app/controller/Toolbar.js | 48 +++++++++---------- .../main/app/view/Animation.js | 4 +- .../main/app/view/ViewTab.js | 2 +- .../main/app/controller/Main.js | 4 +- .../main/app/controller/Toolbar.js | 30 ++++++------ .../main/app/controller/ViewTab.js | 2 +- 12 files changed, 83 insertions(+), 83 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index f669149128..c60825a253 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -277,10 +277,10 @@ define([ 'de': 'https://www.onlyoffice.com/blog/de/2025/06/onlyoffice-docs-9-0-veroeffentlicht', 'it': 'https://www.onlyoffice.com/blog/it/2025/06/disponibile-onlyoffice-docs-9-0', 'ja': 'https://www.onlyoffice.com/blog/ja/2025/06/onlyoffice-docs-9-0-released'}; - !Common.Utils.isIE && !Common.Controllers.Desktop.isWinXp() && !this.mode.isPDFForm && Common.UI.FeaturesManager.isFeatureEnabled('featuresTips', true) && Common.UI.TooltipManager.addTips({ - 'modernTheme' : {name: 'help-tip-modern-theme', placement: 'bottom', offset: {x: 10, y: 0}, text: isNew ? this.helpOldTheme : this.helpModernTheme, header: this.helpModernThemeHeader, target: 'li.ribtab #view', - automove: true, maxwidth: 270, closable: false, isNewFeature: true, link: {text: _main.textLearnMore, url: langmap[lang] || 'https://www.onlyoffice.com/blog/2025/06/onlyoffice-docs-9-0-released'}} - }); + // !Common.Utils.isIE && !Common.Controllers.Desktop.isWinXp() && !this.mode.isPDFForm && Common.UI.FeaturesManager.isFeatureEnabled('featuresTips', true) && Common.UI.TooltipManager.addTips({ + // 'modernTheme' : {name: 'help-tip-modern-theme', placement: 'bottom', offset: {x: 10, y: 0}, text: isNew ? this.helpOldTheme : this.helpModernTheme, header: this.helpModernThemeHeader, target: 'li.ribtab #view', + // automove: true, maxwidth: 270, closable: false, isNewFeature: true, link: {text: _main.textLearnMore, url: langmap[lang] || 'https://www.onlyoffice.com/blog/2025/06/onlyoffice-docs-9-0-released'}} + // }); Common.UI.TooltipManager.addTips({ 'refreshFile' : {text: _main.textUpdateVersion, header: _main.textUpdating, target: '#toolbar', maxwidth: 'none', showButton: false, automove: true, noHighlight: true, multiple: true}, 'disconnect' : {text: _main.textConnectionLost, header: _main.textDisconnect, target: '#toolbar', maxwidth: 'none', showButton: false, automove: true, noHighlight: true, multiple: true}, @@ -4115,7 +4115,7 @@ define([ me.api.asc_setViewerTargetType('hand'); } } - Common.UI.TooltipManager.showTip('modernTheme'); + // Common.UI.TooltipManager.showTip('modernTheme'); config.isOForm && config.canDownload && Common.UI.warning({ msg : config.canRequestSaveAs || !!config.saveAsUrl || config.isOffline ? me.textConvertFormSave : me.textConvertFormDownload, @@ -4368,7 +4368,7 @@ define([ }, onActiveTab: function(tab) { - (tab === 'view') && Common.UI.TooltipManager.closeTip('modernTheme'); + // (tab === 'view') && Common.UI.TooltipManager.closeTip('modernTheme'); }, onTabCollapse: function(tab) { diff --git a/apps/pdfeditor/main/app/controller/Main.js b/apps/pdfeditor/main/app/controller/Main.js index 8b25659328..c313ac2933 100644 --- a/apps/pdfeditor/main/app/controller/Main.js +++ b/apps/pdfeditor/main/app/controller/Main.js @@ -2384,7 +2384,7 @@ define([ length++; }); this._state.usersCount = length; - this._state.fastCoauth && this._state.usersCount>1 && this.api.asc_getCanUndo() && Common.UI.TooltipManager.showTip('fastUndo'); + // this._state.fastCoauth && this._state.usersCount>1 && this.api.asc_getCanUndo() && Common.UI.TooltipManager.showTip('fastUndo'); }, onUserConnection: function(change){ @@ -2413,7 +2413,7 @@ define([ this._state.fastCoauth = Common.localStorage.getBool("pdfe-settings-coauthmode"); if (this._state.fastCoauth && !oldval) this.synchronizeChanges(); - this._state.fastCoauth && this._state.usersCount>1 && this.api.asc_getCanUndo() && Common.UI.TooltipManager.showTip('fastUndo'); + // this._state.fastCoauth && this._state.usersCount>1 && this.api.asc_getCanUndo() && Common.UI.TooltipManager.showTip('fastUndo'); } if (this.appOptions.canForcesave) { this.appOptions.forcesave = Common.localStorage.getBool("pdfe-settings-forcesave", this.appOptions.canForcesave); diff --git a/apps/pdfeditor/main/app/controller/Toolbar.js b/apps/pdfeditor/main/app/controller/Toolbar.js index c23f5e9a97..600f10be96 100644 --- a/apps/pdfeditor/main/app/controller/Toolbar.js +++ b/apps/pdfeditor/main/app/controller/Toolbar.js @@ -193,16 +193,16 @@ define([ 'ja': 'https://www.onlyoffice.com/blog/ja/2025/06/onlyoffice-docs-9-0-released'}, url = langmap[lang] || 'https://www.onlyoffice.com/blog/2025/06/onlyoffice-docs-9-0-released'; - !Common.Utils.isIE && !Common.Controllers.Desktop.isWinXp() && Common.UI.FeaturesManager.isFeatureEnabled('featuresTips', true) && Common.UI.TooltipManager.addTips({ - 'modernTheme' : {name: 'help-tip-modern-theme', placement: 'bottom-right', text: isNew ? this.helpOldTheme : this.helpModernTheme, header: this.helpModernThemeHeader, target: '#slot-btn-interface-theme', - automove: true, maxwidth: 270, closable: false, isNewFeature: true, link: {text: _main.textLearnMore, url: url}} - }); - Common.UI.FeaturesManager.isFeatureEnabled('featuresTips', true) && Common.UI.TooltipManager.addTips({ - 'formEditor' : {name: 'help-tip-form-editor', placement: 'bottom-right', offset: {x: 10, y: 0}, text: this.helpFormEditor, header: this.helpFormEditorHeader, target: 'li.ribtab #forms', - automove: true, maxwidth: 270, closable: false, isNewFeature: true, link: {text: _main.textLearnMore, url: url}}, - 'copyPages' : {name: 'help-tip-copy-pages', placement: 'right-bottom', offset: {x: -30, y: 110}, text: Common.Utils.String.format(this.helpCopyPages, Common.Utils.String.platformKey('Ctrl+C', '{0}'), Common.Utils.String.platformKey('Ctrl+V', '{0}')), - header: this.helpCopyPagesHeader, target: '#thumbnails-btn-close', closable: false, isNewFeature: true, link: {text: _main.textLearnMore, url: url}} - }); + // !Common.Utils.isIE && !Common.Controllers.Desktop.isWinXp() && Common.UI.FeaturesManager.isFeatureEnabled('featuresTips', true) && Common.UI.TooltipManager.addTips({ + // 'modernTheme' : {name: 'help-tip-modern-theme', placement: 'bottom-right', text: isNew ? this.helpOldTheme : this.helpModernTheme, header: this.helpModernThemeHeader, target: '#slot-btn-interface-theme', + // automove: true, maxwidth: 270, closable: false, isNewFeature: true, link: {text: _main.textLearnMore, url: url}} + // }); + // Common.UI.FeaturesManager.isFeatureEnabled('featuresTips', true) && Common.UI.TooltipManager.addTips({ + // 'formEditor' : {name: 'help-tip-form-editor', placement: 'bottom-right', offset: {x: 10, y: 0}, text: this.helpFormEditor, header: this.helpFormEditorHeader, target: 'li.ribtab #forms', + // automove: true, maxwidth: 270, closable: false, isNewFeature: true, link: {text: _main.textLearnMore, url: url}}, + // 'copyPages' : {name: 'help-tip-copy-pages', placement: 'right-bottom', offset: {x: -30, y: 110}, text: Common.Utils.String.format(this.helpCopyPages, Common.Utils.String.platformKey('Ctrl+C', '{0}'), Common.Utils.String.platformKey('Ctrl+V', '{0}')), + // header: this.helpCopyPagesHeader, target: '#thumbnails-btn-close', closable: false, isNewFeature: true, link: {text: _main.textLearnMore, url: url}} + // }); Common.UI.TooltipManager.addTips({ 'refreshFile' : {text: _main.textUpdateVersion, header: _main.textUpdating, target: '#toolbar', maxwidth: 'none', showButton: false, automove: true, noHighlight: true, multiple: true}, 'disconnect' : {text: _main.textConnectionLost, header: _main.textDisconnect, target: '#toolbar', maxwidth: 'none', showButton: false, automove: true, noHighlight: true, multiple: true}, @@ -1665,7 +1665,7 @@ define([ $host.find('.annotate').removeClass('transparent'); $host.find('.pdfedit').removeClass('transparent'); - this.mode.isPDFEdit ? Common.UI.TooltipManager.showTip('formEditor') : Common.UI.TooltipManager.closeTip('formEditor'); + // this.mode.isPDFEdit ? Common.UI.TooltipManager.showTip('formEditor') : Common.UI.TooltipManager.closeTip('formEditor'); }, onAppReady: function (config) { @@ -1728,17 +1728,17 @@ define([ this.requiredTooltip.close(); this.requiredTooltip = undefined; } - (tab === 'file') && Common.UI.TooltipManager.closeTip('copyPages'); - (tab === 'forms') && Common.UI.TooltipManager.closeTip('formEditor'); - if (tab === 'view') { - Common.UI.TooltipManager.getNeedShow('modernTheme') && Common.UI.TooltipManager.closeTip('formEditor'); - Common.UI.TooltipManager.showTip('modernTheme') - } else - Common.UI.TooltipManager.closeTip('modernTheme'); + // (tab === 'file') && Common.UI.TooltipManager.closeTip('copyPages'); + // (tab === 'forms') && Common.UI.TooltipManager.closeTip('formEditor'); + // if (tab === 'view') { + // Common.UI.TooltipManager.getNeedShow('modernTheme') && Common.UI.TooltipManager.closeTip('formEditor'); + // Common.UI.TooltipManager.showTip('modernTheme') + // } else + // Common.UI.TooltipManager.closeTip('modernTheme'); }, onTabCollapse: function(tab) { - Common.UI.TooltipManager.closeTip('modernTheme'); + // Common.UI.TooltipManager.closeTip('modernTheme'); }, applySettings: function() { @@ -2712,7 +2712,7 @@ define([ }, onTextDirShowAfter: function(menu, item) { - Common.UI.TooltipManager.closeTip('rtlDirection'); + // Common.UI.TooltipManager.closeTip('rtlDirection'); }, onApiTextDirection: function (isRtl){ diff --git a/apps/pdfeditor/main/app/controller/ViewTab.js b/apps/pdfeditor/main/app/controller/ViewTab.js index 32c34f8654..27772733db 100644 --- a/apps/pdfeditor/main/app/controller/ViewTab.js +++ b/apps/pdfeditor/main/app/controller/ViewTab.js @@ -234,7 +234,7 @@ define([ Common.Utils.lockControls(Common.enumLock.inLightTheme, !Common.UI.Themes.isDarkTheme(), {array: [me.view.btnDarkDocument]}); }, me)); me.view.btnInterfaceTheme.menu.on('show:after', function () { - Common.UI.TooltipManager.closeTip('modernTheme'); + // Common.UI.TooltipManager.closeTip('modernTheme'); }); setTimeout(function () { diff --git a/apps/pdfeditor/main/app/view/PageThumbnails.js b/apps/pdfeditor/main/app/view/PageThumbnails.js index b6e50573a3..8bcd26eb5d 100644 --- a/apps/pdfeditor/main/app/view/PageThumbnails.js +++ b/apps/pdfeditor/main/app/view/PageThumbnails.js @@ -132,11 +132,11 @@ define([ show: function () { Common.UI.BaseView.prototype.show.call(this,arguments); this.fireEvent('show', this ); - Common.UI.TooltipManager.showTip('copyPages'); + // Common.UI.TooltipManager.showTip('copyPages'); }, hide: function () { - Common.UI.TooltipManager.closeTip('copyPages'); + // Common.UI.TooltipManager.closeTip('copyPages'); Common.UI.BaseView.prototype.hide.call(this,arguments); this.fireEvent('hide', this ); }, diff --git a/apps/presentationeditor/main/app/controller/Animation.js b/apps/presentationeditor/main/app/controller/Animation.js index 1d076a5254..9208c32900 100644 --- a/apps/presentationeditor/main/app/controller/Animation.js +++ b/apps/presentationeditor/main/app/controller/Animation.js @@ -546,8 +546,8 @@ define([ item.set('disabled', !!me._state.lockEmphasis); }); this.setLocked(); - if (this.view && this.view.listEffects && !this.view.listEffects.isDisabled() && this._state.onactivetab) - Common.UI.TooltipManager.showTip('animText'); + // if (this.view && this.view.listEffects && !this.view.listEffects.isDisabled() && this._state.onactivetab) + // Common.UI.TooltipManager.showTip('animText'); }, setTriggerList: function (){ @@ -593,13 +593,13 @@ define([ if (tab == 'animate') { this._state.onactivetab = true; this.setSettings(); - if (this.view && this.view.listEffects && !this.view.listEffects.isDisabled()) - setTimeout(function() { - Common.UI.TooltipManager.showTip('animText'); - }, 10); + // if (this.view && this.view.listEffects && !this.view.listEffects.isDisabled()) + // setTimeout(function() { + // Common.UI.TooltipManager.showTip('animText'); + // }, 10); } else { this._state.onactivetab = false; - Common.UI.TooltipManager.closeTip('animText'); + // Common.UI.TooltipManager.closeTip('animText'); } this.api && this.api.asc_onShowAnimTab(!!this._state.onactivetab); }, diff --git a/apps/presentationeditor/main/app/controller/Toolbar.js b/apps/presentationeditor/main/app/controller/Toolbar.js index 8b2f3fcbd5..faef517505 100644 --- a/apps/presentationeditor/main/app/controller/Toolbar.js +++ b/apps/presentationeditor/main/app/controller/Toolbar.js @@ -306,16 +306,16 @@ define([ 'ja': 'https://www.onlyoffice.com/blog/ja/2025/06/onlyoffice-docs-9-0-released'}, url = langmap[lang] || 'https://www.onlyoffice.com/blog/2025/06/onlyoffice-docs-9-0-released'; - !Common.Utils.isIE && !Common.Controllers.Desktop.isWinXp() && Common.UI.FeaturesManager.isFeatureEnabled('featuresTips', true) && Common.UI.TooltipManager.addTips({ - 'modernTheme' : {name: 'help-tip-modern-theme', placement: 'bottom', text: isNew ? this.helpOldTheme : this.helpModernTheme, header: this.helpModernThemeHeader, target: '#slot-btn-interface-theme', - automove: true, maxwidth: 270, closable: false, isNewFeature: true, link: {text: _main.textLearnMore, url: url}} - }); - Common.UI.FeaturesManager.isFeatureEnabled('featuresTips', true) && Common.UI.TooltipManager.addTips({ - 'rtlDirection' : {name: 'pe-help-tip-rtl-dir', placement: 'bottom-left', text: this.helpRtlDir, header: this.helpRtlDirHeader, target: '#slot-btn-direction', automove: true, - closable: false, isNewFeature: true, link: {text: _main.textLearnMore, url: url}}, - 'animText' : {name: 'pe-help-tip-anim-text', placement: 'target', offset: {x: 5, y: 60}, text: this.helpAnimText, header: this.helpAnimTextHeader, - target: '#animation-field-effects', isNewFeature: true, maxwidth: 300, closable: false, link: {text: _main.textLearnMore, url: url}} - }); + // !Common.Utils.isIE && !Common.Controllers.Desktop.isWinXp() && Common.UI.FeaturesManager.isFeatureEnabled('featuresTips', true) && Common.UI.TooltipManager.addTips({ + // 'modernTheme' : {name: 'help-tip-modern-theme', placement: 'bottom', text: isNew ? this.helpOldTheme : this.helpModernTheme, header: this.helpModernThemeHeader, target: '#slot-btn-interface-theme', + // automove: true, maxwidth: 270, closable: false, isNewFeature: true, link: {text: _main.textLearnMore, url: url}} + // }); + // Common.UI.FeaturesManager.isFeatureEnabled('featuresTips', true) && Common.UI.TooltipManager.addTips({ + // 'rtlDirection' : {name: 'pe-help-tip-rtl-dir', placement: 'bottom-left', text: this.helpRtlDir, header: this.helpRtlDirHeader, target: '#slot-btn-direction', automove: true, + // closable: false, isNewFeature: true, link: {text: _main.textLearnMore, url: url}}, + // 'animText' : {name: 'pe-help-tip-anim-text', placement: 'target', offset: {x: 5, y: 60}, text: this.helpAnimText, header: this.helpAnimTextHeader, + // target: '#animation-field-effects', isNewFeature: true, maxwidth: 300, closable: false, link: {text: _main.textLearnMore, url: url}} + // }); Common.UI.TooltipManager.addTips({ 'refreshFile' : {text: _main.textUpdateVersion, header: _main.textUpdating, target: '#toolbar', maxwidth: 'none', showButton: false, automove: true, noHighlight: true, multiple: true}, 'disconnect' : {text: _main.textConnectionLost, header: _main.textDisconnect, target: '#toolbar', maxwidth: 'none', showButton: false, automove: true, noHighlight: true, multiple: true}, @@ -999,8 +999,8 @@ define([ this.toolbar.mnuArrangeBackward.setDisabled(in_smartart_internal); } - if (!this.toolbar.btnTextDir.isDisabled() && this.toolbar.isTabActive('home')) - Common.UI.TooltipManager.showTip('rtlDirection'); + // if (!this.toolbar.btnTextDir.isDisabled() && this.toolbar.isTabActive('home')) + // Common.UI.TooltipManager.showTip('rtlDirection'); }, onApiStyleChange: function(v) { @@ -1716,7 +1716,7 @@ define([ }, onTextDirShowAfter: function(menu, item) { - Common.UI.TooltipManager.closeTip('rtlDirection'); + // Common.UI.TooltipManager.closeTip('rtlDirection'); }, onApiTextDirection: function (isRtl){ @@ -2900,8 +2900,8 @@ define([ } Common.Utils.asyncCall(function () { if ( config.isEdit ) { - if (me.toolbar.btnTextDir && !me.toolbar.btnTextDir.isDisabled() && me.toolbar.isTabActive('home')) - Common.UI.TooltipManager.showTip('rtlDirection'); + // if (me.toolbar.btnTextDir && !me.toolbar.btnTextDir.isDisabled() && me.toolbar.isTabActive('home')) + // Common.UI.TooltipManager.showTip('rtlDirection'); } }); }, @@ -3079,14 +3079,14 @@ define([ }, onActiveTab: function(tab) { - if (tab !== 'home') - Common.UI.TooltipManager.closeTip('rtlDirection'); - else if (this.toolbar && this.toolbar.btnTextDir && !this.toolbar.btnTextDir.isDisabled()) - setTimeout(function() { - Common.UI.TooltipManager.showTip('rtlDirection'); - }, 10); + // if (tab !== 'home') + // Common.UI.TooltipManager.closeTip('rtlDirection'); + // else if (this.toolbar && this.toolbar.btnTextDir && !this.toolbar.btnTextDir.isDisabled()) + // setTimeout(function() { + // Common.UI.TooltipManager.showTip('rtlDirection'); + // }, 10); - (tab === 'view') ? Common.UI.TooltipManager.showTip('modernTheme') : Common.UI.TooltipManager.closeTip('modernTheme'); + // (tab === 'view') ? Common.UI.TooltipManager.showTip('modernTheme') : Common.UI.TooltipManager.closeTip('modernTheme'); }, onBeforeActiveTab: function(tab) { @@ -3095,8 +3095,8 @@ define([ }, onTabCollapse: function(tab) { - Common.UI.TooltipManager.closeTip('rtlDirection'); - Common.UI.TooltipManager.closeTip('modernTheme'); + // Common.UI.TooltipManager.closeTip('rtlDirection'); + // Common.UI.TooltipManager.closeTip('modernTheme'); }, showStaticElements: function() { diff --git a/apps/presentationeditor/main/app/view/Animation.js b/apps/presentationeditor/main/app/view/Animation.js index 0c42e01321..d1a34ecd08 100644 --- a/apps/presentationeditor/main/app/view/Animation.js +++ b/apps/presentationeditor/main/app/view/Animation.js @@ -59,7 +59,7 @@ define([ var me = this; if (me.listEffects) { me.listEffects.on('click', _.bind(function (combo, record) { - Common.UI.TooltipManager.closeTip('animText'); + // Common.UI.TooltipManager.closeTip('animText'); me.fireEvent('animation:selecteffect', [combo, record]); }, me)); me.listEffectsMore.on('click', _.bind(function () { @@ -243,7 +243,7 @@ define([ } cmp.removeTips(); - Common.UI.TooltipManager.closeTip('animText'); + // Common.UI.TooltipManager.closeTip('animText'); } }); this.lockedControls.push(this.listEffects); diff --git a/apps/presentationeditor/main/app/view/ViewTab.js b/apps/presentationeditor/main/app/view/ViewTab.js index 2a9a90a6d5..cde50fc61e 100644 --- a/apps/presentationeditor/main/app/view/ViewTab.js +++ b/apps/presentationeditor/main/app/view/ViewTab.js @@ -609,7 +609,7 @@ define([ Common.UI.Themes.setTheme(value); }, me)); me.btnInterfaceTheme.menu.on('show:after', function () { - Common.UI.TooltipManager.closeTip('modernTheme'); + // Common.UI.TooltipManager.closeTip('modernTheme'); }); } } diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index e671064878..d52bd4beb9 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -3254,7 +3254,7 @@ define([ length++; }); this._state.usersCount = length; - this._state.fastCoauth && this._state.usersCount>1 && this.api.asc_getCanUndo() && Common.UI.TooltipManager.showTip('fastUndo'); + // this._state.fastCoauth && this._state.usersCount>1 && this.api.asc_getCanUndo() && Common.UI.TooltipManager.showTip('fastUndo'); }, onUserConnection: function(change){ @@ -3283,7 +3283,7 @@ define([ this._state.fastCoauth = (value===null || parseInt(value) == 1); if (this._state.fastCoauth && !oldval) this.synchronizeChanges(); - this._state.fastCoauth && this._state.usersCount>1 && this.api.asc_getCanUndo() && Common.UI.TooltipManager.showTip('fastUndo'); + // this._state.fastCoauth && this._state.usersCount>1 && this.api.asc_getCanUndo() && Common.UI.TooltipManager.showTip('fastUndo'); } if (this.appOptions.canForcesave) { this.appOptions.forcesave = Common.localStorage.getBool("sse-settings-forcesave", this.appOptions.canForcesave); diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index 2b41946519..8f7a84a217 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -287,14 +287,14 @@ define([ 'ja': 'https://www.onlyoffice.com/blog/ja/2025/06/onlyoffice-docs-9-0-released'}, url = langmap[lang] || 'https://www.onlyoffice.com/blog/2025/06/onlyoffice-docs-9-0-released'; - !Common.Utils.isIE && !Common.Controllers.Desktop.isWinXp() && Common.UI.FeaturesManager.isFeatureEnabled('featuresTips', true) && Common.UI.TooltipManager.addTips({ - 'modernTheme' : {name: 'help-tip-modern-theme', placement: 'bottom', offset: {x: 10, y: 0}, text: isNew ? this.helpOldTheme : this.helpModernTheme, header: this.helpModernThemeHeader, - target: 'li.ribtab #view', automove: true, maxwidth: 270, closable: false, isNewFeature: true, link: {text: _main.textLearnMore, url: url}} - }); - Common.UI.FeaturesManager.isFeatureEnabled('featuresTips', true) && Common.UI.TooltipManager.addTips({ - 'asyncFunction' : {name: 'help-tip-async-func', placement: 'bottom-left', text: this.helpAsyncFunc, header: this.helpAsyncFuncHeader, target: '#slot-btn-macros', automove: true, - maxwidth: 270, closable: false, isNewFeature: true, link: {text: _main.textLearnMore, url: url}} - }); + // !Common.Utils.isIE && !Common.Controllers.Desktop.isWinXp() && Common.UI.FeaturesManager.isFeatureEnabled('featuresTips', true) && Common.UI.TooltipManager.addTips({ + // 'modernTheme' : {name: 'help-tip-modern-theme', placement: 'bottom', offset: {x: 10, y: 0}, text: isNew ? this.helpOldTheme : this.helpModernTheme, header: this.helpModernThemeHeader, + // target: 'li.ribtab #view', automove: true, maxwidth: 270, closable: false, isNewFeature: true, link: {text: _main.textLearnMore, url: url}} + // }); + // Common.UI.FeaturesManager.isFeatureEnabled('featuresTips', true) && Common.UI.TooltipManager.addTips({ + // 'asyncFunction' : {name: 'help-tip-async-func', placement: 'bottom-left', text: this.helpAsyncFunc, header: this.helpAsyncFuncHeader, target: '#slot-btn-macros', automove: true, + // maxwidth: 270, closable: false, isNewFeature: true, link: {text: _main.textLearnMore, url: url}} + // }); Common.UI.TooltipManager.addTips({ 'refreshFile' : {text: _main.textUpdateVersion, header: _main.textUpdating, target: '#toolbar', maxwidth: 'none', showButton: false, automove: true, noHighlight: true, multiple: true}, 'disconnect' : {text: _main.textConnectionLost, header: _main.textDisconnect, target: '#toolbar', maxwidth: 'none', showButton: false, automove: true, noHighlight: true, multiple: true}, @@ -4664,7 +4664,7 @@ define([ Common.UI.LayoutManager.addControls(this.btnsComment); } } - Common.UI.TooltipManager.showTip('modernTheme'); + // Common.UI.TooltipManager.showTip('modernTheme'); }, onFileMenu: function (opts) { @@ -5247,11 +5247,11 @@ define([ }, onActiveTab: function(tab) { - if (tab === 'view') { - Common.UI.TooltipManager.closeTip('modernTheme'); - Common.UI.TooltipManager.showTip('asyncFunction'); - } else - Common.UI.TooltipManager.closeTip('asyncFunction'); + // if (tab === 'view') { + // Common.UI.TooltipManager.closeTip('modernTheme'); + // Common.UI.TooltipManager.showTip('asyncFunction'); + // } else + // Common.UI.TooltipManager.closeTip('asyncFunction'); }, onClickTab: function(tab) { @@ -5259,7 +5259,7 @@ define([ }, onTabCollapse: function(tab) { - Common.UI.TooltipManager.closeTip('asyncFunction'); + // Common.UI.TooltipManager.closeTip('asyncFunction'); } }, SSE.Controllers.Toolbar || {})); }); \ No newline at end of file diff --git a/apps/spreadsheeteditor/main/app/controller/ViewTab.js b/apps/spreadsheeteditor/main/app/controller/ViewTab.js index ffa57d779c..4dbdcad7f9 100644 --- a/apps/spreadsheeteditor/main/app/controller/ViewTab.js +++ b/apps/spreadsheeteditor/main/app/controller/ViewTab.js @@ -313,7 +313,7 @@ define([ }, onClickMacros: function() { - Common.UI.TooltipManager.closeTip('asyncFunction'); + // Common.UI.TooltipManager.closeTip('asyncFunction'); var macrosWindow = new Common.Views.MacrosDialog({ api: this.api, });