[SSE] Fix statusbar when sheet-views feature is not supported
This commit is contained in:
parent
c10603dd78
commit
1c15e12505
|
@ -712,7 +712,7 @@ define([
|
||||||
|
|
||||||
onApiActiveSheetChanged: function (index) {
|
onApiActiveSheetChanged: function (index) {
|
||||||
this.statusbar.tabMenu.hide();
|
this.statusbar.tabMenu.hide();
|
||||||
if (this._sheetViewTip && this._sheetViewTip.isVisible() && !this.api.asc_getActiveNamedSheetView(index)) { // hide tip when sheet in the default mode
|
if (this._sheetViewTip && this._sheetViewTip.isVisible() && this.api.asc_getActiveNamedSheetView && !this.api.asc_getActiveNamedSheetView(index)) { // hide tip when sheet in the default mode
|
||||||
this._sheetViewTip.hide();
|
this._sheetViewTip.hide();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -494,7 +494,7 @@ define([
|
||||||
|
|
||||||
while (++i < wc) {
|
while (++i < wc) {
|
||||||
locked = me.api.asc_isWorksheetLockedOrDeleted(i);
|
locked = me.api.asc_isWorksheetLockedOrDeleted(i);
|
||||||
name = me.api.asc_getActiveNamedSheetView(i) || '';
|
name = me.api.asc_getActiveNamedSheetView ? me.api.asc_getActiveNamedSheetView(i) || '' : '';
|
||||||
tab = {
|
tab = {
|
||||||
sheetindex : i,
|
sheetindex : i,
|
||||||
index : items.length,
|
index : items.length,
|
||||||
|
|
Loading…
Reference in a new issue