disable edit on edit form send
This commit is contained in:
parent
9875d4f04b
commit
c2e2988ce1
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue