Display error when unable to learn keyword
This commit is contained in:
parent
9b36165d10
commit
150b015d96
@ -77,7 +77,12 @@
|
||||
};
|
||||
|
||||
$.getJSON('/node/addKeyword', query, function(results) {
|
||||
console.log(results);
|
||||
if (results.success) {
|
||||
$('#learnDlg').modal('hide');
|
||||
}
|
||||
else {
|
||||
$('#learnError').fadeIn();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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">
|
||||
|
@ -258,7 +258,7 @@ function execQuery(query, callback) {
|
||||
);
|
||||
|
||||
graphColumns[keyword] = {
|
||||
color: '#607080',
|
||||
color: '#428bca',
|
||||
value: query.searchParams[keyword],
|
||||
hints: searchHints,
|
||||
steps: query.hintSteps
|
||||
|
Loading…
Reference in New Issue
Block a user