don't submit editor forms with creation lock (was possible using hotkey)

This commit is contained in:
Laura Klünder 2017-11-16 00:38:06 +01:00
parent 7db507b35d
commit 49c484eff8

View file

@ -249,7 +249,7 @@ editor = {
_sidebar_submit: function(e) {
// listener for form submits in the sidebar.
e.preventDefault();
if (editor._loading_geometry) return;
if (editor._loading_geometry || $(this).is('.creation-lock')) return;
var data = $(this).serialize();
var btn = $(this).data('btn');
if (btn !== undefined && btn !== null) {