questlab/www/analytics/plugins/Morpheus/javascripts/morpheus.js
coderkun 046a724272 merge
2015-04-27 16:42:05 +02:00

25 lines
No EOL
617 B
JavaScript

$(document).ready(function () {
// do not apply on the Login page
if($('#loginPage').length) {
return;
}
function initICheck()
{
$('input').iCheck({
checkboxClass: 'form-checkbox',
radioClass: 'form-radio',
checkedClass: 'checked',
hoverClass: 'form-hover'
});
}
initICheck();
$(document).bind('ScheduledReport.edit', initICheck);
$('body').on('ifClicked', 'input', function () {
$(this).trigger('click');
}).on('ifChanged', 'input', function () {
$(this).trigger('change');
});
});