From a206a5a2e85f1506ac36cbbe4bf104c17836796e Mon Sep 17 00:00:00 2001 From: wes Date: Sat, 19 Nov 2016 19:38:43 -0500 Subject: [PATCH] fix bug where booktitle would disappear --- src/scripts/book.tag | 24 ++++++++++++------------ src/scripts/class.tag | 7 +------ 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/src/scripts/book.tag b/src/scripts/book.tag index a40dcb0..0491b0f 100644 --- a/src/scripts/book.tag +++ b/src/scripts/book.tag @@ -1,29 +1,27 @@

-

- -
+
-

+

-

+

-

+

Couldn't find anything, sorry :(

@@ -36,12 +34,13 @@ this.noresources = false; var self = this; -getresources() { +getresources(ev) { + ev.preventDefault(); self.loading = true; self.update(); var params = { - "title" : this.booktitle, - "author" : this.bookauthor + "title" : self.booktitle, + "author" : self.bookauthor }; var url = "/search/resources"; @@ -60,7 +59,8 @@ getresources() { self.noresources = true; } - self.update({"loading" : false}); + self.loading = false; + self.update(); }); } diff --git a/src/scripts/class.tag b/src/scripts/class.tag index 6a79305..ef85288 100644 --- a/src/scripts/class.tag +++ b/src/scripts/class.tag @@ -11,12 +11,7 @@
- +