mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 17:28:55 +00:00
Revert the change
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 *********************** **/
|
||||
|
||||
Reference in New Issue
Block a user