mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
fix episode filtering
Checking the filtering checkboxes on episode listings did
nothing on the first checkbox change, then did the opposite
of what it was supposed (i.e. checking the checkbox would
hide the episodes and vice versa).
Commit 95d7d728e0
eliminated
'return' statement in function - better to remove the code
that 'return' was skipping over anyway. This fixes the issue.
This commit is contained in:
parent
b63dffa3a0
commit
32d0552f03
@ -117,10 +117,6 @@ $(document).ready(function () {
|
|||||||
$("#checkboxControls input").change(function (e) {
|
$("#checkboxControls input").change(function (e) {
|
||||||
var whichClass = $(this).attr('id');
|
var whichClass = $(this).attr('id');
|
||||||
$(this).showHideRows(whichClass);
|
$(this).showHideRows(whichClass);
|
||||||
|
|
||||||
$('tr.' + whichClass).each(function (i) {
|
|
||||||
$(this).toggle();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// initially show/hide all the rows according to the checkboxes
|
// initially show/hide all the rows according to the checkboxes
|
||||||
@ -273,4 +269,4 @@ $(document).ready(function () {
|
|||||||
height:120
|
height:120
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user