Questo sito web utilizza i cookies per offrire una migliore esperienza di navigazione, gestire l'autenticazione e altre funzioni. Chiudendo questo banner, scorrendo questa pagina o cliccando qualunque suo elemento, l'utente esprime il suo consenso all’utilizzo dei cookies sul suo dispositivo.

 Visualizza la Privacy Policy Approvo
jMA(document).ready(function($) { "use strict"; // WCAG compatibility $("#filter_search").attr("title", "Search..."); $("#filter_category").attr("title", "- Select Category -"); $("#filter_date").attr("title", "- All Months & Years -"); $("#filter_orderby").attr("title", "- Ordering -"); $("#filter_author").attr("title", "- Select Author -"); // Search button validation $('button#search-button-home, button#search-button-page').on('click', function () { var filter_search = $('#filter_search').val(); var filter_author = $('#filter_author').val(); var filter_category = $('#filter_category').val(); if ( (filter_search === null || filter_search === "") && (filter_author === null || filter_author === "") && (filter_category === null || filter_category === "") ) { $("#filter_search, #filter_author, #filter_category").css("border", "1px solid red"); w357uiUIkit.modal.alert("Please, choose at least one option or type something in the search form field."); return false; } else if (filter_search.length < 3) { $("#filter_search").css("border", "1px solid red"); w357uiUIkit.modal.alert("Please, enter at least three characters."); return false; } }); // bind change event to select $('#filter_date, #filter_orderby, #filter_author, #filter_category').on('change', function () { var filter_date = $('#filter_date').val(); // get selected value var filter_orderby = $('#filter_orderby').val(); // get selected value var filter_category = $('#filter_category').val(); // get selected value var filter_author = $('#filter_author').val(); // get selected value var menu_item_id = $('#menu_item_id').val(); // get selected value var url = 'index.php?option=com_monthlyarchive'; if (filter_date) { var date_arr = filter_date.split("-"); var year = date_arr[0]; var month = date_arr[1]; if (year) { url += '&year=' + year; } if (month) { url += '&month=' + month; } } else { url += '&year=all'; } if (filter_orderby) { url += '&orderby=' + filter_orderby; } if (filter_category) { url += '&category=' + filter_category; } if (filter_author) { url += '&author=' + filter_author; } if (menu_item_id) { url += '&Itemid=' + menu_item_id; } url += '&task=archive.goToURL'; $('#adminForm').attr('action', url); $('#adminForm').submit(); }); // CLEAR FILTERS $('button#clear-search-button-home, #back-to-monthly-archive').on('click', function () { $('#filter_search').val(''); $('#filter_orderby').val('most_recent_first'); $('#filter_author').val(''); $('#filter_category').val(''); $('#filter_date').val('all'); $('#filter_year').val(''); $('#filter_month').val(''); $('#adminForm').attr('action', '/home/nazionali/convocazioni/archivio-convocazioni-per-data.html'); $('#adminForm').submit(); }); $('button#clear-search-button-page').on('click', function () { $('#filter_search').val(''); $('#filter_orderby').val('most_recent_first'); $('#filter_author').val(''); $('#filter_category').val(''); $('#filter_date').val('all'); $('#filter_year').val(''); $('#filter_month').val(''); $('#adminForm').attr('action', '/home/nazionali/convocazioni/archivio-convocazioni-per-data/all.html'); $('#adminForm').submit(); }); }); JCEMediaBox.init({popup:{width:"",height:"",legacy:0,lightbox:0,shadowbox:0,resize:1,icons:1,overlay:1,overlayopacity:0.8,overlaycolor:"#000000",fadespeed:500,scalespeed:500,hideobjects:0,scrolling:"fixed",close:2,labels:{'close':'Chiudi','next':'Successivo','previous':'Precedente','cancel':'Annulla','numbers':'{$current} di {$total}'},cookie_expiry:"",google_viewer:0},tooltip:{className:"tooltip",opacity:0.8,speed:150,position:"br",offsets:{x: 16, y: 16}},base:"/",imgpath:"plugins/system/jcemediabox/img",theme:"standard",themecustom:"",themepath:"plugins/system/jcemediabox/themes",mediafallback:0,mediaselector:"audio,video"}); jMA(document).ready(function($) { "use strict"; // bind change event to select $('#filter_date_module').on('change', function () { var filter_date_module = $('#filter_date_module').val(); // get selected value var menu_item_id = $('#menu_item_id_module').val(); // get selected value var url = 'index.php?option=com_monthlyarchive'; if (filter_date_module) { var date_arr = filter_date_module.split("-"); var year = date_arr[0]; var month = date_arr[1]; if (year) { url += '&year=' + year; } if (month) { url += '&month=' + month; } } else { url += '&year=all'; } if (menu_item_id) { url += '&Itemid=' + menu_item_id; } url += '&task=archive.goToURL'; $('#maModuleForm').attr('action', url); $('#maModuleForm').submit(); }); }); jQuery(function($){ initTooltips(); $("body").on("subform-row-add", initTooltips); function initTooltips (event, container) { container = container || document;$(container).find(".hasTooltip").tooltip({"html": true,"container": "body"});} }); (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-88082668-1', 'auto'); ga('create', 'UA-63515106-1', 'auto', {'name': 'newTracker'}); // New tracker (Global Analytics) ga('send', 'pageview'); ga('newTracker.send', 'pageview'); // Send page view for new tracker (Global Analytics)