jQuery(window).on('load', function() { new JCaption('img.caption'); }); jQuery(document).ready(function(){WfMediabox.init({"base":"\/","theme":"standard","width":"","height":"","lightbox":0,"shadowbox":0,"icons":1,"overlay":1,"overlay_opacity":0.8,"overlay_color":"#000000","transition_speed":500,"close":2,"scrolling":"fixed","labels":{"close":"Close","next":"Next","previous":"Previous","cancel":"Cancel","numbers":"{{numbers}}","numbers_count":"{{current}} of {{total}}","download":"Download"}});}); 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"});} });