[SSE] Fix Bug 48017
This commit is contained in:
parent
2e245ee95c
commit
33f2431b18
|
@ -363,6 +363,8 @@ define([ 'text!spreadsheeteditor/main/app/template/DataValidationDialog.templ
|
||||||
onStyleSelect: function(combo, record) {
|
onStyleSelect: function(combo, record) {
|
||||||
this.errorIcon.removeClass("error warn info");
|
this.errorIcon.removeClass("error warn info");
|
||||||
this.errorIcon.addClass(record.clsText);
|
this.errorIcon.addClass(record.clsText);
|
||||||
|
if (!this._noApply)
|
||||||
|
this.props.asc_setErrorStyle(record.value);
|
||||||
},
|
},
|
||||||
|
|
||||||
onIgnoreChange: function(field, newValue, oldValue, eOpts) {
|
onIgnoreChange: function(field, newValue, oldValue, eOpts) {
|
||||||
|
@ -424,7 +426,11 @@ define([ 'text!spreadsheeteditor/main/app/template/DataValidationDialog.templ
|
||||||
this.textareaError.setValue(props.asc_getError() || '');
|
this.textareaError.setValue(props.asc_getError() || '');
|
||||||
value = props.asc_getErrorStyle();
|
value = props.asc_getErrorStyle();
|
||||||
this.cmbStyle.setValue(value!==null ? value : Asc.EDataValidationErrorStyle.Stop);
|
this.cmbStyle.setValue(value!==null ? value : Asc.EDataValidationErrorStyle.Stop);
|
||||||
|
var rec = this.cmbStyle.getSelectedRecord();
|
||||||
|
if (rec) {
|
||||||
|
this.errorIcon.removeClass("error warn info");
|
||||||
|
this.errorIcon.addClass(rec.clsText);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.ShowHideElem();
|
this.ShowHideElem();
|
||||||
this._noApply = false;
|
this._noApply = false;
|
||||||
|
|
Loading…
Reference in a new issue