FSN#35887 Saveknop weer enablen na error
svn path=/Website/trunk/; revision=28597
This commit is contained in:
@@ -106,6 +106,14 @@ function scaffolding_edit(model, scf_params)
|
||||
<head>
|
||||
<% FCLTHeader.Generate(); %>
|
||||
<script>
|
||||
function scf_submit_callback(json)
|
||||
{
|
||||
if (json.success)
|
||||
FcltMgr.closeDetail(window, json);
|
||||
else
|
||||
iface.button.enable("btn_scf_submit");
|
||||
}
|
||||
|
||||
function scf_submit()
|
||||
{
|
||||
if (!validateForm("u2"))
|
||||
@@ -117,7 +125,7 @@ function scaffolding_edit(model, scf_params)
|
||||
return false;
|
||||
}
|
||||
|
||||
$.post($("form[name=u2]")[0].getAttribute("action"), $("[name=u2]").serialize(), FcltCallbackClose, "json");
|
||||
$.post($("form[name=u2]")[0].getAttribute("action"), $("[name=u2]").serialize(), FcltCallbackAndThenAlways(scf_submit_callback), "json");
|
||||
return true; // disable button
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user