mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
Merged [47008]: Disables the create button while creating a new entry with GenericDataAdmin.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@60168 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
438b6b5f85
commit
f2a2903c0e
@ -78,10 +78,13 @@ LeftPane.prototype = {
|
||||
var form = (form) ? form : Event.findElement(e,"form");
|
||||
var link = form.action + "&" + Form.serialize(form);
|
||||
|
||||
// disable button
|
||||
Form.Element.disable(el);
|
||||
var openTab = $('Form_EditForm').getCurrentTab();
|
||||
var callback = function() {
|
||||
Form.Element.enable(this);
|
||||
statusMessage("Record created","good");
|
||||
}
|
||||
}.bind(e);
|
||||
$('Form_EditForm').updateCMSContent(el, openTab, link, callback);
|
||||
|
||||
Event.stop(e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user