Merge branch 'develop' of https://github.com/ONLYOFFICE/web-apps into develop
This commit is contained in:
commit
03d35a4ea3
|
@ -170,10 +170,12 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onInsertFunction: function() {
|
onInsertFunction: function() {
|
||||||
|
if (this.mode == 'edit') {
|
||||||
SSE.getController('AddContainer').showModal({
|
SSE.getController('AddContainer').showModal({
|
||||||
panel: 'function',
|
panel: 'function',
|
||||||
button: '#ce-function'
|
button: '#ce-function'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
|
@ -161,7 +161,7 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onApiShowPopMenu: function(posX, posY) {
|
onApiShowPopMenu: function(posX, posY) {
|
||||||
// if ( !this.permitions.isEdit ) return;
|
if ( !_isEdit ) return;
|
||||||
|
|
||||||
if ($('.popover.settings, .popup.settings, .picker-modal.settings, .modal-in').length > 0) {
|
if ($('.popover.settings, .popup.settings, .picker-modal.settings, .modal-in').length > 0) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue