mirror of
https://github.com/quatalog/site.git
synced 2024-11-25 00:03:03 +00:00
Rearrange some stuff
This commit is contained in:
parent
410269025f
commit
9db2effa1e
|
@ -59,7 +59,7 @@ const display_search_results = function(searchable_catalog) {
|
|||
window.onload = function() {
|
||||
// smart quotes
|
||||
document.getElementById("searchTerm").innerHTML = "“" + search_term + "”";
|
||||
fetch("searchable_catalog.json")
|
||||
fetch("json/searchable_catalog.json")
|
||||
.then(r => r.json())
|
||||
.then(display_search_results);
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ const search_helper = async function(event,from_course_page = true) {
|
|||
|
||||
// check if "ABCD-1345" is a real course code
|
||||
const course_exists = await fetch(
|
||||
from_course_page ? "../courses_list.json" : "courses_list.json"
|
||||
from_course_page ? "../json/courses_list.json" : "json/courses_list.json"
|
||||
)
|
||||
.then(list => list.json())
|
||||
.then(list => list.includes(code_str));
|
||||
|
|
Loading…
Reference in a new issue