diff --git a/app/assets/javascripts/users/settings/teams/invite_users_modal.js b/app/assets/javascripts/users/settings/teams/invite_users_modal.js index 638d2c330..55ebbca28 100644 --- a/app/assets/javascripts/users/settings/teams/invite_users_modal.js +++ b/app/assets/javascripts/users/settings/teams/invite_users_modal.js @@ -20,7 +20,7 @@ maxTags: modal.data('max-tags') }); - modal.on('show.bs.modal', function() { + modal.off('show.bs.modal').on('show.bs.modal', function() { // This cannot be scoped outside this function // because it is generated via JS teamSelectorDropdown2 = teamSelectorDropdown.parent() @@ -83,7 +83,7 @@ }); // Click action - modal.find('[data-action=invite]').on('click', function() { + modal.find('[data-action=invite]').off('click').on('click', function() { var data = { emails: tagsInput.val() }; diff --git a/app/views/users/settings/teams/show.html.erb b/app/views/users/settings/teams/show.html.erb index f36e122f1..0271b5866 100644 --- a/app/views/users/settings/teams/show.html.erb +++ b/app/views/users/settings/teams/show.html.erb @@ -93,7 +93,7 @@