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")
|
||||
(static-render! #:mime-type "application/json"
|
||||
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!)
|
||||
(for ((completion-ch pending-completions))
|
||||
(channel-put completion-ch (void)))
|
||||
|
|
|
@ -46,14 +46,14 @@ $(document).ready(function () {
|
|||
$("table.sortable").tablesorter();
|
||||
|
||||
if ($("#tags").length) {
|
||||
PkgSite.staticJSON((document.body.className === "package-form")
|
||||
? "formal-tags"
|
||||
: "tag-search-completions",
|
||||
function (completions) {
|
||||
completions.sort();
|
||||
PkgSite.multiTermComplete(
|
||||
PkgSite.preventTabMovingDuringSelection($("#tags")),
|
||||
completions);
|
||||
});
|
||||
PkgSite.dynamicJSON((document.body.className === "package-form")
|
||||
? "formal-tags"
|
||||
: "tag-search-completions",
|
||||
function (completions) {
|
||||
completions.sort();
|
||||
PkgSite.multiTermComplete(
|
||||
PkgSite.preventTabMovingDuringSelection($("#tags")),
|
||||
completions);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user