update Piwik to version 2.16 (fixes #91)

This commit is contained in:
oliver 2016-04-10 18:55:57 +02:00
commit d885a4baa9
5833 changed files with 418860 additions and 226988 deletions

View file

@ -6,7 +6,10 @@ $(document).ready(function () {
function initICheck()
{
$('input').iCheck({
$('input').filter(function () {
return !$(this).parent().is('.form-radio')
&& !$(this).hasClass('no-icheck');
}).iCheck({
checkboxClass: 'form-checkbox',
radioClass: 'form-radio',
checkedClass: 'checked',
@ -16,10 +19,15 @@ $(document).ready(function () {
initICheck();
$(document).bind('ScheduledReport.edit', initICheck);
$(document).bind('Goals.edit', initICheck);
$(broadcast).bind('locationChangeSuccess', initICheck);
$(broadcast).bind('updateICheck', initICheck);
$('body').on('ifClicked', 'input', function () {
$(this).trigger('click');
}).on('ifChanged', 'input', function () {
$(this).trigger('change');
if(this.type != 'radio' || this.checked) {
$(this).trigger('change');
}
});
});
});