disable edit on edit form send

This commit is contained in:
Laura Klünder 2016-09-26 09:57:38 +02:00
parent 9875d4f04b
commit c2e2988ce1

View file

@ -237,11 +237,13 @@ editor = {
var action = $(this).attr('action'); var action = $(this).attr('action');
$('#mapeditcontrols').removeClass('detail'); $('#mapeditcontrols').removeClass('detail');
$('#mapeditdetail').html(''); $('#mapeditdetail').html('');
editor._editing.disableEdit();
$.post(action, data, function (data) { $.post(action, data, function (data) {
var content = $(data); var content = $(data);
if ($('<div>').append(content).find('form').length > 0) { if ($('<div>').append(content).find('form').length > 0) {
$('#mapeditdetail').html(content); $('#mapeditdetail').html(content);
$('#mapeditcontrols').addClass('detail'); $('#mapeditcontrols').addClass('detail');
editor._editing.enableEdit();
} else { } else {
editor._editing = null; editor._editing = null;
editor._creating = null; editor._creating = null;