From f9011b72efc9760afb49a32276562c3759e30d06 Mon Sep 17 00:00:00 2001 From: wes Date: Mon, 8 Aug 2016 17:21:37 -0400 Subject: [PATCH] loading thingy --- src/scripts/search.tag | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/scripts/search.tag b/src/scripts/search.tag index 7d197ab..e549356 100644 --- a/src/scripts/search.tag +++ b/src/scripts/search.tag @@ -19,12 +19,15 @@ function submit(ev) { console.log("submitted"); - console.log(this); + this.opts.booksLoading = true; + this.update(); var params = $(ev.currentTarget).serialize(); $.getJSON("/search/fc?"+params, function(courses) { var fcourses = filterCourses(courses); var cgroups = groupsof(3, fcourses); results_passer.trigger("new_results", cgroups); + this.opts.booksLoading = false; + this.update(); }); }