[SSE] Disable adding formula from the cell editor line only when input text to the cell.
This commit is contained in:
parent
0fb162320d
commit
93cf75ce81
|
@ -125,6 +125,7 @@ define([
|
|||
this.api.isCEditorFocused = false;
|
||||
this.editor.cellNameDisabled(false);
|
||||
}
|
||||
this.editor.$btnfunc.toggleClass('disabled', state == Asc.c_oAscCellEditorState.editText);
|
||||
},
|
||||
|
||||
onApiCellSelection: function(info) {
|
||||
|
@ -147,6 +148,7 @@ define([
|
|||
|
||||
onCellsRange: function(status) {
|
||||
this.editor.cellNameDisabled(status != Asc.c_oAscSelectionDialogType.None);
|
||||
this.editor.$btnfunc.toggleClass('disabled', status != Asc.c_oAscSelectionDialogType.None);
|
||||
},
|
||||
|
||||
onLayoutResize: function(o, r) {
|
||||
|
|
|
@ -102,7 +102,6 @@ define([
|
|||
|
||||
cellNameDisabled: function(disabled){
|
||||
(disabled) ? this.$cellname.attr('disabled', 'disabled') : this.$cellname.removeAttr('disabled');
|
||||
this.$btnfunc.toggleClass('disabled', disabled);
|
||||
this.btnNamedRanges.setDisabled(disabled);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue