From 6401ce0d9fe518c00ee92a7d5b0096c256262cc9 Mon Sep 17 00:00:00 2001 From: alberto Date: Tue, 13 Jun 2017 09:26:38 +0200 Subject: [PATCH] exactDay checkbox --- search/web/inc/dac.jsp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/search/web/inc/dac.jsp b/search/web/inc/dac.jsp index e1c74f3299..82e6b847e4 100644 --- a/search/web/inc/dac.jsp +++ b/search/web/inc/dac.jsp @@ -20,7 +20,8 @@ \' " \" - +false +true @@ -33,7 +34,17 @@ da.render(); da.setDatePicker(); da.scrollToMax(); + $('#exactDay').attr('checked', ${exactDay}); }); + + function toggleExact(){ + if($('#exactDay').attr('checked')){ + $('.exactbox').hide(); + } else { + $('.exactbox').show(); + } + } + function checkValid(event, obj){ var minDate = $("#f1").datepicker('option', 'getDate'); var maxDate = $("#f2").datepicker('option', 'getDate'); @@ -60,7 +71,7 @@
- konkrétní denchecked="checked" />