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');
$('#mapeditcontrols').removeClass('detail');
$('#mapeditdetail').html('');
editor._editing.disableEdit();
$.post(action, data, function (data) {
var content = $(data);
if ($('<div>').append(content).find('form').length > 0) {
$('#mapeditdetail').html(content);
$('#mapeditcontrols').addClass('detail');
editor._editing.enableEdit();
} else {
editor._editing = null;
editor._creating = null;