Revert the change

This commit is contained in:
DariusIII
2016-05-25 11:57:33 +02:00
parent a6e549c077
commit 5c1d26c052
3 changed files with 29 additions and 32 deletions
-2
View File
@@ -1,5 +1,3 @@
2016-05-25 DariusIII
* Chg: Move icheck from custom.js to functions.js
2016-05-24 DariusIII
* Chg: Rename groupid column to groups_id.
* Upd: Improve speed of update_releases on larger databases
+29
View File
@@ -108,6 +108,35 @@ $('.collapse-link').click(function () {
}, 50);
});
/** ****** /collapse panel *********************** **/
/** ****** iswitch *********************** **/
$(function () {
var checkAll = $('input.flat-all');
var checkboxes = $('input.flat');
$('input').iCheck({
checkboxClass: 'icheckbox_flat-green',
radioClass: 'iradio_flat-green'
});
checkAll.on('ifChecked ifUnchecked', function(event) {
if (event.type == 'ifChecked') {
checkboxes.iCheck('check');
} else {
checkboxes.iCheck('uncheck');
}
});
checkboxes.on('ifChanged', function(event){
if(checkboxes.filter(':checked').length == checkboxes.length) {
checkAll.prop('checked', 'checked');
} else {
checkAll.prop('checked', false);
}
checkAll.iCheck('update');
});
});
/** ****** /iswitch *********************** **/
/** ****** star rating *********************** **/
// Starrr plugin (https://github.com/dobtco/starrr)
var __slice = [].slice;
-30
View File
@@ -1210,33 +1210,3 @@ function getHistory()
timeout:5000
});
}
/** ****** iswitch *********************** **/
$(function () {
var checkAll = $('input.flat-all');
var checkboxes = $('input.flat');
$('input').iCheck({
checkboxClass: 'icheckbox_flat-green',
radioClass: 'iradio_flat-green'
});
checkAll.on('ifChecked ifUnchecked', function(event) {
if (event.type == 'ifChecked') {
checkboxes.iCheck('check');
} else {
checkboxes.iCheck('uncheck');
}
});
checkboxes.on('ifChanged', function(event){
if(checkboxes.filter(':checked').length == checkboxes.length) {
checkAll.prop('checked', 'checked');
} else {
checkAll.prop('checked', false);
}
checkAll.iCheck('update');
});
});
/** ****** /iswitch *********************** **/