aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/static/new/javascript/group_manager.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/wqflask/wqflask/static/new/javascript/group_manager.js b/wqflask/wqflask/static/new/javascript/group_manager.js
index 4c172cbf..cd56133a 100644
--- a/wqflask/wqflask/static/new/javascript/group_manager.js
+++ b/wqflask/wqflask/static/new/javascript/group_manager.js
@@ -16,23 +16,22 @@ $('#clear_members').click(function(){
function add_emails(user_type){
- var email_address = $('input[name=user_email]').val();
- var email_list_string = $('input[name=' + user_type + '_emails_to_add]').val().trim()
- console.log(email_list_string)
+ let email_address = $('input[name=user_email]').val();
+ let email_list_string = $('input[name=' + user_type + '_emails_to_add]').val().trim()
if (email_list_string == ""){
- var email_set = new Set();
+ let email_set = new Set();
} else {
- var email_set = new Set(email_list_string.split(","))
+ let email_set = new Set(email_list_string.split(","))
}
email_set.add(email_address)
$('input[name=' + user_type + '_emails_to_add]').val(Array.from(email_set).join(','))
- var emails_display_string = Array.from(email_set).join('\n')
+ let emails_display_string = Array.from(email_set).join('\n')
$('.added_' + user_type + 's').val(emails_display_string)
}
function clear_emails(user_type){
$('input[name=' + user_type + '_emails_to_add]').val("")
$('.added_' + user_type + 's').val("")
-} \ No newline at end of file
+}