From 9db2effa1e53d365d03caf87d6a401aea4c734e6 Mon Sep 17 00:00:00 2001 From: 3eef8a28f26fb2bcc514e6f1938929a1f931762 <116031952+3eef8a28f26fb2bcc514e6f1938929a1f931762@users.noreply.github.com> Date: Thu, 16 Feb 2023 21:02:07 -0500 Subject: [PATCH] Rearrange some stuff --- js/search.js | 2 +- js/search_helper.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/search.js b/js/search.js index 3ba369dac..3cd5844fb 100644 --- a/js/search.js +++ b/js/search.js @@ -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); } diff --git a/js/search_helper.js b/js/search_helper.js index 34c5e3168..9295938f0 100644 --- a/js/search_helper.js +++ b/js/search_helper.js @@ -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));