From 926dfcdecb7b15e566201a4ebd0d6017ba5f632d Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 19 Dec 2023 21:45:28 +0300 Subject: [PATCH] [DE] Fix Bug 65592 --- apps/documenteditor/main/app/controller/FormsTab.js | 4 ++++ apps/documenteditor/main/app/view/FormSettings.js | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/apps/documenteditor/main/app/controller/FormsTab.js b/apps/documenteditor/main/app/controller/FormsTab.js index c585d7e65d..f6d6c14c6c 100644 --- a/apps/documenteditor/main/app/controller/FormsTab.js +++ b/apps/documenteditor/main/app/controller/FormsTab.js @@ -84,6 +84,7 @@ define([ } Common.NotificationCenter.on('protect:doclock', _.bind(this.onChangeProtectDocument, this)); Common.NotificationCenter.on('forms:close-help', _.bind(this.closeHelpTip, this)); + Common.NotificationCenter.on('forms:show-help', _.bind(this.showHelpTip, this)); return this; }, @@ -466,6 +467,9 @@ define([ var props = this._helpTips[step], target = props.target; + if (props.tip && props.tip.isVisible()) + return true; + if (typeof target === 'string') target = $(target); if (!(target && target.length && target.is(':visible'))) diff --git a/apps/documenteditor/main/app/view/FormSettings.js b/apps/documenteditor/main/app/view/FormSettings.js index 716e73b5c8..d1f59db8e9 100644 --- a/apps/documenteditor/main/app/view/FormSettings.js +++ b/apps/documenteditor/main/app/view/FormSettings.js @@ -649,6 +649,12 @@ define([ this.lockedControls.push(this.cmbRoles); this.cmbRoles.on('selected', this.onRolesChanged.bind(this)); + var showRolesTip = function() { + Common.NotificationCenter.trigger('forms:show-help', 'roles'); + me.cmbRoles.off('show:before', showRolesTip); + }; + me.cmbRoles.on('show:before', showRolesTip); + this.cmbFormat = new Common.UI.ComboBox({ el: $markup.findById('#form-combo-format'), cls: 'input-group-nr',