FSN#35992 Actiecheckbox alleen zichtbaar na aanvinking en ook bij vaste keuze

svn path=/Website/trunk/; revision=31713
This commit is contained in:
Peter Feij
2016-11-28 23:34:15 +00:00
parent 055c1c15ed
commit 275ca4f4d5

View File

@@ -112,7 +112,7 @@ var timestamp_notes = new Date();
function notiToggler(deze)
{
var noti = $(deze).prop('checked');
$('#notifyFE').prop('disabled', !noti);
$('#notioption').css('display', noti ? "inline":"none");
if (!noti)
$('#notifyFE').prop('checked', false);
}
@@ -363,14 +363,17 @@ var timestamp_notes = new Date();
{
CHECKBOX("fldcheck", "zichtbaarFE", note_zichtbaar, { html: "onchange='notiToggler(this)'" });
Response.Write("<label for='zichtbaarFE'>{0}</label>".format(L("lcl_mld_zichtbaar_FE")));
if (S("mld_flag_on_fenote") > 0)
{
CHECKBOX("fldcheck", "notifyFE", note_zichtbaar, { html: note_zichtbaar?"":" disabled=1" });
Response.Write("<label for='notifyFE'>{0}</label>".format(L("lcl_mld_toekennen_FE")));
}
}
else
Response.Write("{0}: {1}".format(L("lcl_mld_zichtbaar_FE"), note_zichtbaar?L("lcl_Yes"):L("lcl_No")));
{
Response.Write("{0}: {1}".format(L("lcl_mld_zichtbaar_FE"), note_zichtbaar?L("lcl_Yes"):L("lcl_No"))); /* vriendelijker is: Wel/Niet zichtbaar voor melder */
}
if (S("mld_flag_on_fenote") > 0)
{
Response.Write("<span id='notioption'"+(note_zichtbaar? "" :" style='display:none'")+">");
CHECKBOX("fldcheck", "notifyFE", false); /* compatible ware: note_zichtbaar, maar dit lijkt mij beter */
Response.Write("<label for='notifyFE'>{0}</label></span>".format(L("lcl_mld_toekennen_FE")));
}
}
IFACE.FORM_END();
%>