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');
|
||||
$('#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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue