diff --git a/src/scripts/search.js b/src/scripts/search.js index 1acb7d4..c4d8ad1 100644 --- a/src/scripts/search.js +++ b/src/scripts/search.js @@ -48,7 +48,10 @@ function ResultsPasser() { var results_passer = new ResultsPasser(); -riot.mount("search", {booksLoading : false}); +riot.mount("search", { + showHelp : true, + booksLoading : false + }); riot.mount("results", {notLoading : true}); function autocomplete(element, endpoint) { diff --git a/src/scripts/search.tag b/src/scripts/search.tag index 5a48209..3c299b5 100644 --- a/src/scripts/search.tag +++ b/src/scripts/search.tag @@ -21,12 +21,21 @@
- + Type a few words of your course's name or the course code (e.g. PSYCH 2B03)
+var that = this; +function clearHelp() { + that.showHelp = false; + that.update(); +} + function submit(ev) { ev.preventDefault(); console.log("submitted");