Cartella Organi di Giustizia - Dispositivi

Documenti

pdf DISPOSITIVO 17 03 2022 DEF

330 download

Scarica (pdf, 320 KB)

DISPOSITIVO 17.03.2022 DEF.pdf

// WORKAROUND FOR ISSUE: #873 kQuery(function($) { $.magnificPopup.instance._onFocusIn = function(e) { // Do nothing if target element is select2 input if( $(e.target).hasClass('select2-search__field') ) { return true; } // Else call parent method $.magnificPopup.proto._onFocusIn.call(this,e); }; }); kQuery(function($){ $('[data-k-modal]').each(function(idx, el) { var el = $(el); var data = el.data('k-modal'); var options = {"type":"image"}; if (data) { $.extend(true, options, data); } el.magnificPopup(options); }); }); kQuery(function($) { var addHiddenFields = function(button) { var field, i = 0, fields = ['.k-js-tag-search', '.k-js-category-search']; for (; i < fields.length; i++) { field = $(fields[i]); if (field.length && !field.val()) { var input = $('') .attr('name', field.attr('name').replace('[]', '')) .val(''); $(button[0].form).append(input); } } }; $('.k-js-search-submit').click(function() { addHiddenFields($(this)); }); $('.k-js-search-reset').click(function(event) { event.preventDefault(); var button = $(this), form = button[0].form; $('.k-filters') .find('input:not(:checkbox), textarea').val('').end() .find('select').val(null).trigger('change'); addHiddenFields(button); $(form).append($('').val('1') .attr('name', 'filter[reset]')); form.submit(); }); }); kQuery(function($) { $('.docman_track_download').on('click', function() { var el = $(this); if (typeof gtag !== 'undefined') { gtag('event', 'Download', { 'event_category': 'DOCman', 'event_label': el.data('title'), 'name': el.data('title'), 'value': parseInt(el.data('id'), 10) }); } else if (typeof window.GoogleAnalyticsObject !== 'undefined' && typeof window[window.GoogleAnalyticsObject] !== 'undefined') { window[window.GoogleAnalyticsObject]('send', 'event', 'DOCman', 'Download', el.data('title'), parseInt(el.data('id'), 10)); } else if (typeof _gaq !== 'undefined' && typeof _gat !== 'undefined') { if (_gat._getTrackers().length) { _gaq.push(function() { var tracker = _gat._getTrackers()[0]; tracker._trackEvent('DOCman', 'Download', el.data('title'), parseInt(el.data('id'), 10)); }); } } }); if (typeof _paq !== 'undefined') { _paq.push(['setDownloadClasses', 'docman_track_download']); _paq.push(['trackPageView']); } }); if (typeof Koowa === 'object' && Koowa !== null) { if (typeof Koowa.translator === 'object' && Koowa.translator !== null) { Koowa.translator.loadTranslations({"Play":"Riproduzione","View":"Vista","Open":"Apri"}); } } kQuery(function($) { $('a.docman_download__button').downloadLabel({"force_download":"0","gdocs_supported_extensions":["ogg","doc","docx","xls","xlsx","ppt","pptx","pages","ai","psd","tiff","dxf","svg","eps","ps","ttf","xps"],"gdocs_preview":0}); }); jQuery(function($){ initTooltips(); $("body").on("subform-row-add", initTooltips); function initTooltips (event, container) { container = container || document;$(container).find(".hasTooltip").tooltip({"html": true,"container": "body"});} }); jQuery(function ($) { initChosen(); $("body").on("subform-row-add", initChosen); function initChosen(event, container) { container = container || document; $(container).find(".advancedSelect").chosen({"disable_search_threshold":10,"search_contains":true,"allow_single_deselect":true,"placeholder_text_multiple":"Scrivi o seleziona alcune opzioni","placeholder_text_single":"Seleziona un'opzione","no_results_text":"Nessun risultato corrispondente"}); } }); jQuery(document).ready(function() { var value, searchword = jQuery('#mod-finder-searchword261'); // Get the current value. value = searchword.val(); // If the current value equals the default value, clear it. searchword.on('focus', function () { var el = jQuery(this); if (el.val() === 'Cerca nel sito') { el.val(''); } }); // If the current value is empty, set the previous value. searchword.on('blur', function () { var el = jQuery(this); if (!el.val()) { el.val(value); } }); jQuery('#mod-finder-searchform261').on('submit', function (e) { e.stopPropagation(); var advanced = jQuery('#mod-finder-advanced261'); // Disable select boxes with no value selected. if (advanced.length) { advanced.find('select').each(function (index, el) { var el = jQuery(el); if (!el.val()) { el.attr('disabled', 'disabled'); } }); } }); var suggest = jQuery('#mod-finder-searchword261').autocomplete({ serviceUrl: '/it/component/finder/?task=suggestions.suggest&format=json&tmpl=component', paramName: 'q', minChars: 1, maxHeight: 400, width: 300, zIndex: 9999, deferRequestBy: 500 });});