Clearing keyword list before appending
This commit is contained in:
parent
931877a4d2
commit
764643da03
@ -154,6 +154,7 @@
|
||||
$('#forgetDialog').on('show.bs.modal', function() {
|
||||
$.getJSON('/node/getKeywords', function(keywords) {
|
||||
$('#forgetKeyword').prop('disabled', keywords.length === 0);
|
||||
$('#keywordToForget').empty();
|
||||
for (var i = 0, count = keywords.length; i < count; ++i) {
|
||||
$('#keywordToForget').append($('<option></option>', {
|
||||
value: keywords[i],
|
||||
|
Loading…
Reference in New Issue
Block a user