[SSE] Don't show tab context menu when server is disconnected.

This commit is contained in:
Julia Radzhabova 2016-11-03 15:00:48 +03:00
parent 3ef127579c
commit d13f0ac0b0

View file

@ -501,7 +501,8 @@ define([
onTabMenu: function (o, index, tab) {
if (this.mode.isEdit && !this.isEditFormula && (this.rangeSelectionMode !== Asc.c_oAscSelectionDialogType.Chart) &&
(this.rangeSelectionMode !== Asc.c_oAscSelectionDialogType.FormatTable)) {
(this.rangeSelectionMode !== Asc.c_oAscSelectionDialogType.FormatTable) &&
!this.mode.isDisconnected ) {
if (tab && tab.sheetindex >= 0) {
var rect = tab.$el.get(0).getBoundingClientRect(),
childPos = tab.$el.offset(),