From 92f24c0d04839a0850faae550fd6842173b362ef Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 20 Jul 2021 23:38:25 +0300 Subject: [PATCH] [SSE] Fix Bug 51406 --- .../spreadsheeteditor/main/app/view/FormatRulesEditDlg.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js b/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js index 020fecac1..d0c5b14f9 100644 --- a/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js +++ b/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js @@ -863,7 +863,8 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template', record.value==Asc.c_oAscCfvoType.AutoMin || record.value==Asc.c_oAscCfvoType.AutoMax); me.setDefComboValue(combo.options.type, record.value, me.barControls[combo.options.type].range); }); - combo.setValue(arr[1].value); + var value = (i==0) ? Asc.c_oAscCfvoType.AutoMin : Asc.c_oAscCfvoType.AutoMax; + combo.setValue(value); Common.UI.FocusManager.add(this, combo); var range = new Common.UI.InputFieldBtn({ @@ -873,9 +874,10 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template', allowBlank : true, btnHint : this.textSelectData, validateOnChange: false, - type : i + type : i, + disabled : (value==Asc.c_oAscCfvoType.AutoMin || value==Asc.c_oAscCfvoType.AutoMax || value==Asc.c_oAscCfvoType.Minimum || value==Asc.c_oAscCfvoType.Maximum) }); - range.setValue(0); + me.setDefComboValue(i, value, range); range.on('button:click', _.bind(this.onSelectData, this)); this.barControls.push({combo: combo, range: range}); Common.UI.FocusManager.add(this, range);