FCLT-SUP#43187 Actie bij melder zetten ontbreekt op mobile

svn path=/Website/trunk/; revision=35445
This commit is contained in:
Erik Groener
2017-09-26 12:07:34 +00:00
parent 9a7306d2be
commit a9729edaeb

View File

@@ -267,6 +267,15 @@ var sql = "";
window.location.href = "<%=back_reference()%>";
}
}
function notiToggler(deze)
{
var noti = $(deze).prop("checked");
$("#notioption").css("display", noti ? "inline":"none");
if (noti)
$("#notifyFE").prop("checked", <%=S("mld_note_default_notifyFE") == 1? 1 : 0%> == 1);
else
$("#notifyFE").prop("checked", false);
}
</script>
<%
HEADER({title: L("lcl_mobile_notes")+" " + pnote.subject, nohome: true});
@@ -278,12 +287,19 @@ var sql = "";
<%
RWFIELD("note", L("lcl_mld_note_new"), pnote.omschrijving, {multi: true, pclass: "required"});
if (pnote.fenotes & 2 && !pnote.onlyFErights)
if (!pnote.onlyFErights)
{
if (pnote.note_key == -1 && !pnote.eigenMelding)
CHB_FIELD("zichtbaarFE", "<nobr>" + L("lcl_mld_zichtbaar_FE") + "</nobr>", pnote.zichtbaar, {disabled: false});
if (pnote.note_key == -1 && !pnote.eigenMelding && pnote.fenotes != 1)
CHB_FIELD("zichtbaarFE", "<nobr>" + L("lcl_mld_zichtbaar_FE") + "</nobr>", pnote.zichtbaar, {disabled: false, onclick: "notiToggler(this)"});
else
CHB_FIELD("zichtbaarFE", "<nobr>" + L("lcl_mld_zichtbaar_FE") + "</nobr>", pnote.zichtbaar, {disabled: true });
CHB_FIELD("zichtbaarFE", "<nobr>" + L("lcl_mld_zichtbaar_FE") + "</nobr>", pnote.zichtbaar, {disabled: true, onclick: "notiToggler(this)"});
if (S("mld_flag_on_fenote")>0 && pnote.fenotes>0 && !pnote.eigenMelding)
{
Response.Write("<span id='notioption'"+(pnote.note_zichtbaar? "style='display:inline'" :" style='display:none'")+">");
CHB_FIELD("notifyFE", "<nobr>" + L("lcl_mld_toekennen_FE") + "</nobr>",pnote.zichtbaar, {disabled: false});
Response.Write("<label for='notifyFE'>{0}</label></span>".format(L("lcl_mld_toekennen_FE")));
}
}
CONTROLGROUP_START();