From 764643da0304c97ee9b4778d9aa2b476be58fc12 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 20 Sep 2014 18:13:50 +0900 Subject: [PATCH] Clearing keyword list before appending --- client/application.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/application.js b/client/application.js index 6de51f1..b698809 100644 --- a/client/application.js +++ b/client/application.js @@ -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($('', { value: keywords[i],