1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-25 17:40:31 +00:00

Code cosmetics

This commit is contained in:
Ozzie Isaacs 2021-03-14 16:02:37 +01:00
parent 2fbb7466d3
commit 16453a05f8
3 changed files with 4 additions and 4 deletions

View File

@ -265,7 +265,7 @@ $("#search").on("change input.typeahead:selected", function(event) {
}
});
$("#include_tag option:selected").each(function () {
$("#exclude_tag").find("[value="+$(this).val() + "]").prop("disabled", true);
$("#exclude_tag").find("[value=" + $(this).val() + "]").prop("disabled", true);
});
$("#include_tag").selectpicker("refresh");
$("#exclude_tag").selectpicker("refresh");

View File

@ -64,7 +64,7 @@ $("#all").click(function() {
$(".char").click(function() {
var character = this.innerText;
$list.isotope({ filter: function() {
return this.attributes["data-id"].value.charAt(0).toUpperCase() == character;
}
return this.attributes["data-id"].value.charAt(0).toUpperCase() === character;
}
});
});

View File

@ -55,7 +55,7 @@ $(document).on("change", "select[data-control]", function() {
$(document).on("change", "select[data-controlall]", function() {
var $this = $(this);
var name = $this.data("controlall");
var showOrHide = parseInt($this.val());
var showOrHide = parseInt($this.val(), 10);
if (showOrHide) {
$("[data-related=" + name + "]").show();
} else {