zulip/static
Yashashvi Dave d72280f1c7 invite user: Fix click handler called multiple time on submit.
This commit fixes multiple invite-user-email sent to user.

In invite-user-form, submit-form click handler is getting
called multiple times on submit-invite-user-form event, which
results in multiple invitation mail to user.
Because, we registered same submit click handler multiple times.
Submit form click handler is registered when user opens invite-user
modal. If user opens modal multiple times, click handler get
registered multiple times.

We should register this click handler on `exports.initialize`
function instead of `exports.launch` function. This modal is unlike
other modal, where we append html when user opens modal. In this
case, we append modal on initialization. We only show modal when
user opens. So on initialization, modal element already exists,
register click handler on submit-btn element, on intialization
not when user open modal.

Fixes #10354.
2018-08-26 22:15:50 -07:00
..
assets Fix favicon generator script. 2018-01-30 10:32:55 -08:00
audio
generated
html HTML validation: Remove xmlns:svg attribute. 2018-07-09 09:45:42 +05:30
icons/fonts tools: Move generate-custom-icon-webfont to a subdirectory. 2018-08-09 15:39:57 -07:00
images user docs: Remove outdated app guides. 2018-08-20 18:52:04 -07:00
js invite user: Fix click handler called multiple time on submit. 2018-08-26 22:15:50 -07:00
locale i18n: Update translation files. 2018-08-14 11:57:54 -07:00
styles topic_edit_form: Update styling of topic edit form. 2018-08-23 11:51:20 -07:00
templates display settings: Implement UI for starred_message_counts. 2018-08-21 13:42:23 -07:00
third marked: Warn against placing capture blocks below 'text' block. 2018-08-09 17:20:18 -07:00
ts webpack: Upgrade webpack version 4.5.0. 2018-04-23 15:49:33 -07:00
.gitignore tools: Move generate-custom-icon-webfont to a subdirectory. 2018-08-09 15:39:57 -07:00
favicon.ico
node_modules