Commit 03d35a4e authored by Alexander Yuzhin's avatar Alexander Yuzhin

Merge branch 'develop' of https://github.com/ONLYOFFICE/web-apps into develop

parents 627517cb 7bed3d0a
...@@ -170,10 +170,12 @@ define([ ...@@ -170,10 +170,12 @@ define([
}, },
onInsertFunction: function() { onInsertFunction: function() {
SSE.getController('AddContainer').showModal({ if (this.mode == 'edit') {
panel: 'function', SSE.getController('AddContainer').showModal({
button: '#ce-function' panel: 'function',
}); button: '#ce-function'
});
}
} }
}); });
}); });
\ No newline at end of file
...@@ -161,7 +161,7 @@ define([ ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment