mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
Hide tips
This commit is contained in:
@ -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);
|
||||
|
||||
@ -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){
|
||||
|
||||
@ -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 () {
|
||||
|
||||
@ -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 );
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user