PageSourceSearch

https://mairie-grazac31.fr/_plugins/web/resources-minimized/LTE5Mzk3ODM5NTU.js

js mairie-grazac31.fr collected 2026-09-25 12:15:53 UTC 3,155 bytes, 10 lines download raw bytes

1/** File : /plugins/forms/resources/js/FormsHelper.js */
2document_currentScript = (function() { a = document.createElement('script'); a.src='/plugins/forms/resources/js/FormsHelper.js'; return a; })(); try {
3function callURL(formId,formDomId,limit,prefix){if(limit=="")return;$j.ajax({url:prefix+"forms/get-submissions-action",method:"POST",data:{formId:formId},cache:false,dataType:"json",success:function(data){var form=$j("#"+formDomId);if(limit==""||data.submissions<limit)form.attr("data-ametys-form-state","open");else form.attr("data-ametys-form-state","closed");replaceValues(form.find('*[data-ametys-form-fill \x3d"closed-text"]'),limit,data.submissions);replaceValues(form.find('*[data-ametys-form-fill \x3d"limit-text"]'),
4limit,data.submissions)},error:function(){var form=$j("#"+formDomId);form.attr("data-ametys-form-state","error")}})}function replaceValues(node,limit,submissions){if(node&&node.length){messageToDisplay=node.html().replace(/{remaining}/g,limit-submissions);messageToDisplay=messageToDisplay.replace(/{submissions}/g,submissions);messageToDisplay=messageToDisplay.replace(/{limit}/g,limit);return node.html(messageToDisplay)}}
5function checkForm(formId,formDomId,errorCheck){var form=$j("#"+formDomId);var dataState=form.attr("data-ametys-form-state");if(dataState=="closed"||dataState=="loading"||dataState=="error")return false;var errors=0;var ERROR_CLASSNAME="form-error";var ERROR_CLASSNAME2="invalid";function reset(id,type){var input=$j("#"+id);var divinput=$j(input.parents(".input")[0]);var label=$j("#"+id+"_label");divinput.removeClass(ERROR_CLASSNAME2);input.removeClass(ERROR_CLASSNAME+" "+ERROR_CLASSNAME+"-"+type);
6input.prop("title","");label.removeClass(ERROR_CLASSNAME);label.prop("title","")}function error(id,type,message){var input=$j("#"+id);var divinput=$j(input.parents(".input")[0]);var label=$j("#"+id+"_label");divinput.addClass(ERROR_CLASSNAME2);var currentMessage=input.prop("title");currentMessage=currentMessage==null||currentMessage==""?message:currentMessage+" - "+message;var currentLabelMessage=label.prop("title");currentLabelMessage=currentLabelMessage==null||currentLabelMessage==""?message:currentLabelMessage+
7" - "+message;input.addClass(ERROR_CLASSNAME+" "+ERROR_CLASSNAME+"-"+type);input.prop("title",currentMessage);label.addClass(ERROR_CLASSNAME);label.prop("title",currentLabelMessage);errors++}errorCheck(reset,error);if(errors!=0)alert("The form has "+errors+" error(s).\nPlease correct it (them) before proceeding.\n\nYou can hover a highlighted field with the cursor for more details.");return errors==0}
8function computeFormCost(element){var cost=0;var form=$j(element).parents("form").first();form.find("select[data-partofcost\x3d'true'] option:selected").each(function(index,option){var c=parseFloat(($j(option).attr("data-cost")||"0").trim());if(!isNaN(c))cost+=c});form.find("input[data-unit]").each(function(index,input){input.value=cost.toLocaleString($j(input).attr("data-lang"),{style:"currency",currency:$j(input).attr("data-unit")})})};} catch (e) { console.error("/plugins/forms/resources/js/FormsHelper.js\n", e) }
9
10//# sourceMappingURL=LTE5Mzk3ODM5NTU.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.