use client?s mimetype as fallback for uploads

This commit is contained in:
coderkun 2014-05-03 22:37:04 +02:00
commit a75696e4e7
3468 changed files with 596986 additions and 0 deletions

View file

@ -0,0 +1,25 @@
$(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');
});
});