diff --git a/static/js/alert_words_ui.js b/static/js/alert_words_ui.js index ce25044bb7..5af5ff80b4 100644 --- a/static/js/alert_words_ui.js +++ b/static/js/alert_words_ui.js @@ -22,7 +22,7 @@ $(function () { dataType: 'json'}); } - function add_alert_word(word) { + function add_alert_word(word, event) { if (word === '') { return; } @@ -44,7 +44,7 @@ $(function () { $('#word-alerts').on('click', '.add-alert-word', function (event) { var word = $(event.target).siblings('input').val(); - add_alert_word(word); + add_alert_word(word, event); }); $('#word-alerts').on('click', '.remove-alert-word', function (event) {