mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Fix JSHint warnings in javascript files
This commit is contained in:
parent
4b950cf928
commit
d1efe4d974
5 changed files with 80 additions and 82 deletions
|
@ -19,7 +19,7 @@ Nested loops below:
|
|||
|
||||
{% endcomment %}
|
||||
|
||||
"use strict"
|
||||
"use strict";
|
||||
|
||||
var search_data = [
|
||||
{% for list in site.devsearches %}{% for item in list %}
|
||||
|
@ -29,8 +29,7 @@ var search_data = [
|
|||
label: "{{term[0]}}",
|
||||
uri: "{{term[1]}}",
|
||||
category: "{{category_name}}"
|
||||
}
|
||||
{% endfor %}{% unless forloop.last %},{% endunless %}{% endfor %}{% endif %}{% endfor %}{% unless forloop.last %},{% endunless %}{% endfor %}
|
||||
}{% endfor %}{% unless forloop.last %},{% endunless %}{% endfor %}{% endif %}{% endfor %}{% unless forloop.last %},{% endunless %}{% endfor %}
|
||||
];
|
||||
|
||||
|
||||
|
@ -48,7 +47,7 @@ $.widget("custom.catcomplete", $.ui.autocomplete, {
|
|||
currentCategory = "";
|
||||
$.each(items, function(index, item) {
|
||||
var li;
|
||||
if (item.category != currentCategory) {
|
||||
if (item.category !== currentCategory) {
|
||||
ul.append("<li class='ui-autocomplete-category'>" + item.category + "</li>");
|
||||
currentCategory = item.category;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue