Commit 7bed3d0a authored by Maxim Kadushkin's avatar Maxim Kadushkin

[SSE mobile] debug for reader mode

parent beec096e
......@@ -170,10 +170,12 @@ define([
},
onInsertFunction: function() {
SSE.getController('AddContainer').showModal({
panel: 'function',
button: '#ce-function'
});
if (this.mode == 'edit') {
SSE.getController('AddContainer').showModal({
panel: 'function',
button: '#ce-function'
});
}
}
});
});
\ No newline at end of file
......@@ -161,7 +161,7 @@ define([
},
onApiShowPopMenu: function(posX, posY) {
// if ( !this.permitions.isEdit ) return;
if ( !_isEdit ) return;
if ($('.popover.settings, .popup.settings, .picker-modal.settings, .modal-in').length > 0) {
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