UWVA#40554 Betere SinglePress handling bij opslaan bezoekers

svn path=/Website/branches/v2017.1/; revision=34426
This commit is contained in:
Jos Groot Lipman
2017-06-26 10:08:41 +00:00
parent bed01ca905
commit 564c228d4f
3 changed files with 6 additions and 5 deletions

View File

@@ -176,7 +176,7 @@ else
var timeEindInitEmpty = (<%=timeEindInitEmpty? 1 : 0%> == 1);
</script>
<form name=u2 action="bez_edit_afspraak_save.asp?urole=<%=urole%>&afspr_key=<%=afspr_key%>" method=post onsubmit="return bez_submit();">
<form name=u2 action="bez_edit_afspraak_save.asp?urole=<%=urole%>&afspr_key=<%=afspr_key%>" method=post onsubmit="bez_submit();return false;">
<% BLOCK_START("bezAfspraak", L("lcl_vis_appointment") + " " + (afspr_key>0?afspr_key:""));

View File

@@ -220,7 +220,7 @@ function bez_submit()
$.post($("form[name=u2]")[0].action, $("[name=u2]").serialize(), FcltCallbackAndThenAlways(bez_submit_callback), "json");
return false;
return true; // disable button
}
function import_visit()

View File

@@ -122,7 +122,7 @@ else
if (!validateForm("u2", {checklength: true}))
return false;
$.post($("form[name=u2]")[0].action, $("[name=u2]").serialize(), FcltCallbackClose, "json");
return true;
return true; // Disable button
}
function bez_cancel()
{
@@ -136,14 +136,15 @@ else
</script>
</head>
<body id="editbody">
<% var buttons = [ {title: L("lcl_submit"), icon: "opslaan.png", action: "bez_submit()", id: "bsubmit_bez_bezoekers" },
<% var buttons = [ {title: L("lcl_submit"), icon: "opslaan.png", action: "bez_submit()", singlepress: true, id: "bsubmit_bez_bezoekers" },
{title: L("lcl_cancel"), icon: "undo.png", action: "bez_cancel()", id: "bcancel_bez_bezoekers" } ];
IFRAMER_HEADER(L("lcl_bez_bezoekers"), buttons)
%>
<div id="edit">
<form name="u2"
action="bez_edit_bezoekers_save.asp?urole=<%=urole%>&rsv_ruimte_key=<%=rsv_ruimte_key%>"
method="post">
method="post"
onsubmit="bez_submit();return false;">
<input type="hidden" name="locatiekey" id="locatiekey" value="<%=locatie_key%>">
<input type="hidden" name="date_from" id="date_from" value="<%=bez_afspraak_datum.valueOf()%>">
<input type="hidden" name="date_to" id="date_to" value="<%=bez_afspraak_eind.valueOf()%>">