diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp index 902444b4..c4d05be8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp @@ -691,7 +691,7 @@ Liferay.on('mapIt-ready',function(event) { || ('' == $('#long').val().trim())) { localize(false); } - var isActivable = <%= !disabledInput && !isGeoEditable %> + var isActivable = <%= !disabledInput && !isGeoEditable %>; if (isActivable) { AUI().one('#localizzaBtn').set('disabled', false).removeClass('disabled'); AUI().one('#_<%= PortletKeys.MAPIT %>_container_btn .bloccamap').set('disabled', false).removeClass('disabled'); @@ -767,7 +767,7 @@ $('#long, #lat').on('change', function() $('#sistemi_costruttivi input').on('change', function() { var _this = $(this); if(_this.attr('id')=='tcInterventiCheckbox'){ - if(!_this.is(":checked")) + if(!_this.is(":checked")){ $('.costruzioni_esistenti ul input[type="checkbox"]').prop("checked", false).attr("disabled", true); } else { $('.costruzioni_esistenti ul input[type="checkbox"]').attr("disabled", false).removeClass("disabled"); @@ -802,98 +802,15 @@ $('#destinazioneinazione input[type="radio"]').on('click', function() { checkIfDisableInfrastrutture(); var el = $(this); setTimeout(function() { - if (el.val() == "3" && el.is(':checked')) { + if (el.val() == "3" && el.is(':checked')) $('input[name="destinazioneAltroIntervento"]').prop('disabled', false); else $('input[name="destinazioneAltroIntervento"]').prop('disabled', true); }, 100); }); -var agMin = parseFloat("<%= territorio.getAgMin() %>"), -agMax = parseFloat("<%= territorio.getAgMax() %>"); - - var _this = $(this), - checked = _this.prop('checked'), - sibling, sibling_hidden; - if(_this.attr('id')=="normDpr01DepCheckbox"){ - sibling = $("#normDpr02DepCheckbox"); - sibling_hidden = $("#normDpr02Dep"); - } - else if(_this.attr('id')=="normDpr02DepCheckbox"){ - sibling = $("#normDpr01DepCheckbox"); - sibling_hidden = $("#normDpr01Dep"); - } - else if(_this.attr('id')=="normDpr02AutCheckbox"){ - sibling = $("#normDpr01AutCheckbox"); - sibling_hidden = $("#normDpr01Aut"); - } - else if(_this.attr('id')=="normDpr02AutCheckbox"){ - sibling = $("#normDpr01AutCheckbox"); - sibling_hidden = $("#normDpr01Aut"); - } - if(_this.is(":checked")){ - sibling.prop("checked", false); - sibling_hidden.val(false); - } - }); -