1

Display error when unable to learn keyword

This commit is contained in:
Alex Yatskov 2014-09-19 10:36:42 +09:00
parent 9b36165d10
commit 150b015d96
3 changed files with 8 additions and 2 deletions

View File

@ -77,7 +77,12 @@
};
$.getJSON('/node/addKeyword', query, function(results) {
console.log(results);
if (results.success) {
$('#learnDlg').modal('hide');
}
else {
$('#learnError').fadeIn();
}
});
}

View File

@ -87,6 +87,7 @@
</div>
</div>
</div>
<div class="alert alert-danger" id="learnError" style="display: none;">Error learning keyword</div>
</div>
<div class="modal-footer">
<div class="btn-group">

View File

@ -258,7 +258,7 @@ function execQuery(query, callback) {
);
graphColumns[keyword] = {
color: '#607080',
color: '#428bca',
value: query.searchParams[keyword],
hints: searchHints,
steps: query.hintSteps