diff --git a/APPL/PDA/melding.asp b/APPL/PDA/melding.asp index 4b77287150..88f00322d5 100644 --- a/APPL/PDA/melding.asp +++ b/APPL/PDA/melding.asp @@ -286,21 +286,19 @@ if (addSubheader) { // Eérst accepteren, dan saven. Ander heb je met BOF maar zonder FOF een probleem $.post( "../mld/mld_accept_save.asp?mld_key=<%=mld_key%>" , $("[name=meld]").serialize() - , FcltCallbackAndThen(function () +<% if (this_mld.canChange) { %> + , McltCallbackAndThen(function () { - if (<%=this_mld.canChange%>) - { - $.post( $("form[name=meld]")[0].action - , $("[name=meld]").serialize() - , McltCallbackRefresh - , "json"); - } - else - { - window.location.href = window.location.href; - } + $.post( $("form[name=meld]")[0].action + , $("[name=meld]").serialize() + , McltCallbackRefresh + , "json"); }) , "json"); +<% } else { %> + , McltCallbackRefresh + , "json"); +<% } %> return false; };