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:
Hayden Smith 2008-08-08 04:32:44 +00:00
parent 438b6b5f85
commit f2a2903c0e

View File

@ -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);