[SSE] Fix Bug 33512.

This commit is contained in:
Julia Radzhabova 2016-11-23 16:38:30 +03:00
parent b3ceec763e
commit 0c9a6d4ff1
2 changed files with 5 additions and 2 deletions

View file

@ -1624,6 +1624,8 @@ define([
this._state.fontsize = str_size;
}
toolbar.lockToolbar(SSE.enumLock.cantHyperlink, (selectionType == Asc.c_oAscSelectionType.RangeShapeText) && (this.api.asc_canAddShapeHyperlink()===false), { array: [toolbar.btnInsertHyperlink]});
if (editOptionsDisabled) return;
/* read font params */

View file

@ -76,7 +76,8 @@ define([
ruleDelFilter: 'rule-clear-filter',
menuFileOpen: 'menu-file-open',
cantPrint: 'cant-print',
multiselect: 'is-multiselect'
multiselect: 'is-multiselect',
cantHyperlink: 'cant-hyperlink'
};
SSE.Views.Toolbar = Backbone.View.extend(_.extend({
@ -496,7 +497,7 @@ define([
id : 'id-toolbar-btn-inserthyperlink',
cls : 'btn-toolbar',
iconCls : 'btn-inserthyperlink',
lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selImage, _set.selShape, _set.multiselect, _set.lostConnect, _set.coAuth]
lock : [_set.editCell, _set.selChart, _set.selChartText, _set.selImage, _set.selShape, _set.cantHyperlink, _set.multiselect, _set.lostConnect, _set.coAuth]
});
me.btnInsertChart = new Common.UI.Button({