1

Clearing keyword list before appending

This commit is contained in:
Alex Yatskov 2014-09-20 18:13:50 +09:00
parent 931877a4d2
commit 764643da03

View File

@ -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],