From 150b015d96765240a16265ab57bf8147135c0274 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Fri, 19 Sep 2014 10:36:42 +0900 Subject: [PATCH] Display error when unable to learn keyword --- client/application.js | 7 ++++++- client/index.html | 1 + server/search.js | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/client/application.js b/client/application.js index 0bbeb02..d0c461a 100644 --- a/client/application.js +++ b/client/application.js @@ -77,7 +77,12 @@ }; $.getJSON('/node/addKeyword', query, function(results) { - console.log(results); + if (results.success) { + $('#learnDlg').modal('hide'); + } + else { + $('#learnError').fadeIn(); + } }); } diff --git a/client/index.html b/client/index.html index d300e67..bc11b73 100644 --- a/client/index.html +++ b/client/index.html @@ -87,6 +87,7 @@ +