|
@@ -15,9 +15,15 @@
|
|
|
$(this).on("change", function(e) {
|
|
|
let value = $(this).val();
|
|
|
let target = $(this).data('path');
|
|
|
- $(target + " article").filter(function () {
|
|
|
- $(this).toggle($("input.rating", this).val() >= value);
|
|
|
- });
|
|
|
+ if ($(target + " article").length) {
|
|
|
+ $(target + " article").filter(function () {
|
|
|
+ $(this).toggle($("input.rating", this).val() >= value);
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ $(target + " tr").filter(function () {
|
|
|
+ $(this).toggle($("td input.rating", this).val() >= value);
|
|
|
+ });
|
|
|
+ }
|
|
|
});
|
|
|
});
|
|
|
}
|