Commit 16453a05 authored by Ozzie Isaacs's avatar Ozzie Isaacs

Code cosmetics

parent 2fbb7466
...@@ -265,7 +265,7 @@ $("#search").on("change input.typeahead:selected", function(event) { ...@@ -265,7 +265,7 @@ $("#search").on("change input.typeahead:selected", function(event) {
} }
}); });
$("#include_tag option:selected").each(function () { $("#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"); $("#include_tag").selectpicker("refresh");
$("#exclude_tag").selectpicker("refresh"); $("#exclude_tag").selectpicker("refresh");
......
...@@ -64,7 +64,7 @@ $("#all").click(function() { ...@@ -64,7 +64,7 @@ $("#all").click(function() {
$(".char").click(function() { $(".char").click(function() {
var character = this.innerText; var character = this.innerText;
$list.isotope({ filter: function() { $list.isotope({ filter: function() {
return this.attributes["data-id"].value.charAt(0).toUpperCase() == character; return this.attributes["data-id"].value.charAt(0).toUpperCase() === character;
} }
}); });
}); });
...@@ -55,7 +55,7 @@ $(document).on("change", "select[data-control]", function() { ...@@ -55,7 +55,7 @@ $(document).on("change", "select[data-control]", function() {
$(document).on("change", "select[data-controlall]", function() { $(document).on("change", "select[data-controlall]", function() {
var $this = $(this); var $this = $(this);
var name = $this.data("controlall"); var name = $this.data("controlall");
var showOrHide = parseInt($this.val()); var showOrHide = parseInt($this.val(), 10);
if (showOrHide) { if (showOrHide) {
$("[data-related=" + name + "]").show(); $("[data-related=" + name + "]").show();
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment