Skip to content

Commit 93c6537

Browse files
committed
Reset select box every time you select a term
1 parent 9fc831b commit 93c6537

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/views/custom_message_settings/_messages.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ $('#key-selector').on('select2:select', function (e) {
2525
href: '#',
2626
onclick: '$(this).closest("p").remove();; return false;'
2727
}).appendTo($('#edit-custom-messages .tabular p:first'));
28+
$('#key-selector').val('').change();
2829
$('#key-selector option[value="' + key + '"]').prop("disabled", true).change();
2930
setSelect2();
3031
}

0 commit comments

Comments
 (0)