update Piwik to version 2.16 (fixes #91)
This commit is contained in:
parent
296343bf3b
commit
d885a4baa9
5833 changed files with 418860 additions and 226988 deletions
|
|
@ -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');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue