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 @@ +