formal-tags and tag-search-completions are only ever loaded from a dynamic page
This commit is contained in:
parent
f912945c1b
commit
41f26c320b
|
@ -1356,10 +1356,6 @@
|
||||||
#:filename "/index.html")
|
#:filename "/index.html")
|
||||||
(static-render! #:mime-type "application/json"
|
(static-render! #:mime-type "application/json"
|
||||||
relative-named-url json-search-completions)
|
relative-named-url json-search-completions)
|
||||||
(static-render! #:mime-type "application/json"
|
|
||||||
relative-named-url json-tag-search-completions)
|
|
||||||
(static-render! #:mime-type "application/json"
|
|
||||||
relative-named-url json-formal-tags)
|
|
||||||
(static-finish-update!)
|
(static-finish-update!)
|
||||||
(for ((completion-ch pending-completions))
|
(for ((completion-ch pending-completions))
|
||||||
(channel-put completion-ch (void)))
|
(channel-put completion-ch (void)))
|
||||||
|
|
|
@ -46,14 +46,14 @@ $(document).ready(function () {
|
||||||
$("table.sortable").tablesorter();
|
$("table.sortable").tablesorter();
|
||||||
|
|
||||||
if ($("#tags").length) {
|
if ($("#tags").length) {
|
||||||
PkgSite.staticJSON((document.body.className === "package-form")
|
PkgSite.dynamicJSON((document.body.className === "package-form")
|
||||||
? "formal-tags"
|
? "formal-tags"
|
||||||
: "tag-search-completions",
|
: "tag-search-completions",
|
||||||
function (completions) {
|
function (completions) {
|
||||||
completions.sort();
|
completions.sort();
|
||||||
PkgSite.multiTermComplete(
|
PkgSite.multiTermComplete(
|
||||||
PkgSite.preventTabMovingDuringSelection($("#tags")),
|
PkgSite.preventTabMovingDuringSelection($("#tags")),
|
||||||
completions);
|
completions);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user