jQuery(window).on('load', function() {
new JCaption('img.caption');
});
jQuery(function($){ initTooltips(); $("body").on("subform-row-add", initTooltips); function initTooltips (event, container) { container = container || document;$(container).find(".hasTooltip").tooltip({"html": true,"container": "body"});} });
if (typeof RokBoxSettings == 'undefined') RokBoxSettings = {pc: '100'};
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();
});
});