[SSE] Fix Bug 32955.
This commit is contained in:
parent
84cf8d181a
commit
58b7c3f97c
|
@ -117,11 +117,13 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onApiEditCell: function(state) {
|
onApiEditCell: function(state) {
|
||||||
if (state == Asc.c_oAscCellEditorState.editStart)
|
if (state == Asc.c_oAscCellEditorState.editStart){
|
||||||
this.api.isCellEdited = true;
|
this.api.isCellEdited = true;
|
||||||
else if (state == Asc.c_oAscCellEditorState.editEnd) {
|
this.editor.cellNameDisabled(true);
|
||||||
|
} else if (state == Asc.c_oAscCellEditorState.editEnd) {
|
||||||
this.api.isCellEdited = false;
|
this.api.isCellEdited = false;
|
||||||
this.api.isCEditorFocused = false;
|
this.api.isCEditorFocused = false;
|
||||||
|
this.editor.cellNameDisabled(false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -144,16 +146,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onCellsRange: function(status) {
|
onCellsRange: function(status) {
|
||||||
var isRangeSelection = (status != Asc.c_oAscSelectionDialogType.None);
|
this.editor.cellNameDisabled(status != Asc.c_oAscSelectionDialogType.None);
|
||||||
|
|
||||||
if (isRangeSelection) {
|
|
||||||
this.editor.$cellname.attr('disabled', 'disabled');
|
|
||||||
this.editor.$btnfunc['addClass']('disabled');
|
|
||||||
} else {
|
|
||||||
this.editor.$cellname.removeAttr('disabled');
|
|
||||||
this.editor.$btnfunc['removeClass']('disabled');
|
|
||||||
}
|
|
||||||
this.editor.btnNamedRanges.setDisabled(isRangeSelection);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onLayoutResize: function(o, r) {
|
onLayoutResize: function(o, r) {
|
||||||
|
|
|
@ -100,6 +100,12 @@ define([
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
cellNameDisabled: function(disabled){
|
||||||
|
(disabled) ? this.$cellname.attr('disabled', 'disabled') : this.$cellname.removeAttr('disabled');
|
||||||
|
this.$btnfunc.toggleClass('disabled', disabled);
|
||||||
|
this.btnNamedRanges.setDisabled(disabled);
|
||||||
|
},
|
||||||
|
|
||||||
tipFormula: 'Insert Function',
|
tipFormula: 'Insert Function',
|
||||||
textManager: 'Manager'
|
textManager: 'Manager'
|
||||||
}, SSE.Views.CellEditor || {}));
|
}, SSE.Views.CellEditor || {}));
|
||||||
|
|
Loading…
Reference in a new issue