zulip/static/js
sahil839 8f736e6917 invite: Fix text of submit-invitation button on completion.
There is a bug in invite flow, where the button text resets
to incorrect text after the invitation process is completed.
This bug is because we are using $().button("reset") to
reset the button text, but the data-reset-text attribute of
button is not changed when toggling between multi-use link
invite and email invites.

This bug can be fixed by setting data-reset-text attribute
in a way similar to the way we set data-loading-text attribute
on toggling between multiuse and normal invites.

But according to the bootstrap docs,"reset" method was removed
in v4.0 (https://getbootstrap.com/docs/4.0/migration/#buttons).

Though we are not using Bootstrap v4.0 as of now, but it is
good to remove such methods as it will help in future when we
would upgrade to later bootstrap versions.

So instead of fixing this by above mentioned patch, we are
fixing this by removing "reset" method and instead using simple
jquery to reset the text and enable the button after the invite
process is completed.
2020-09-29 16:50:27 -07:00
..
analytics support: Confirm the string_id before scrubbing the realm. 2020-09-28 15:37:49 -07:00
billing js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
bundles styles: Rename .scss files back to .css. 2020-09-15 16:33:28 -07:00
portico eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
stats stats: Fix a string not tagged for translation. 2020-09-25 16:20:53 -07:00
types js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
activity.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
admin.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
alert_words_ui.js docs: Fix capitalization of keyboard keys. 2020-08-11 10:25:53 -07:00
alert_words.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
archive.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
attachments_ui.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
avatar.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
blueslip_stacktrace.ts blueslip_stacktrace: Add missing exception handlers. 2020-07-28 11:01:35 -07:00
blueslip.js blueslip: Replace fatal with throw new Error(…). 2020-09-25 15:17:36 -07:00
bot_data.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
buddy_data.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
buddy_list.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
channel.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
click_handlers.js message_edit: Add hide event for clipboard tooltip after copy. 2020-09-12 12:04:24 -07:00
color_data.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
colorspace.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
common.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
components.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
compose_actions.js compose: Refactor autosize_textarea to work while editing messages. 2020-09-21 15:43:17 -07:00
compose_fade.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
compose_pm_pill.js compose_pm_pill: Don’t reference nonexistent input_pull members. 2020-09-25 15:12:33 -07:00
compose_state.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
compose_ui.js compose: Refactor autosize_textarea to work while editing messages. 2020-09-21 15:43:17 -07:00
compose.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
composebox_typeahead.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
condense.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
confirm_dialog.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
copy_and_paste.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
csrf.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
debug.js debug: Remove debug from globals. 2020-07-29 11:17:24 -07:00
drafts.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
dropdown_list_widget.js dropdown_list_widget: Move require to top level. 2020-09-25 15:12:24 -07:00
echo.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
emoji_picker.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
emojisets.js emojisets: Prefetch the octopus via Webpack. 2020-09-28 10:57:08 -07:00
favicon.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
feature_flags.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
feedback_widget.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
fetch_status.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
filter.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
floating_recipient_bar.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
fold_dict.ts typescript: Enable strictNullChecks. 2020-07-28 11:01:35 -07:00
gear_menu.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
global.d.ts js: Purge people module from window. 2020-09-01 19:55:58 -07:00
hash_util.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
hashchange.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
hbs.d.ts blueslip: Make stack trace more readable. 2019-10-31 13:47:54 -07:00
hotkey.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
hotspots.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
huddle_data.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
i18n.js docs: Add comment links to i18n documentation. 2020-09-18 11:44:04 -07:00
info_overlay.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
input_pill.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
invite.js invite: Fix text of submit-invitation button on completion. 2020-09-29 16:50:27 -07:00
keydown_util.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
lazy_set.js js: Normalize strings to double quotes. 2020-07-17 14:31:24 -07:00
lightbox_canvas.js lightbox_canvas: Remove movementX, movementY polyfill. 2020-08-12 16:07:28 -07:00
lightbox.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
list_cursor.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
list_render.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
list_util.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
loading.js loading: Add aria-hidden="true" attribute to loading spinners. 2020-08-09 16:47:56 -07:00
local_message.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
localstorage.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
markdown_config.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
markdown.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
message_edit_history.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
message_edit.js ui: Add loading spinner for Move Topic popover. 2020-08-31 16:51:49 -07:00
message_events.js stream_topic_history: Update topic last msg_id after msg deletion. 2020-08-04 15:29:03 -07:00
message_fetch.js blueslip: Replace fatal with throw new Error(…). 2020-09-25 15:17:36 -07:00
message_flags.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
message_list_data.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
message_list_view.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
message_list.js blueslip: Replace fatal with throw new Error(…). 2020-09-25 15:17:36 -07:00
message_live_update.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
message_scroll.js message_scroll: Rename actively_scrolling() to is_actively_scrolling(). 2020-09-25 15:12:24 -07:00
message_store.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
message_util.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
message_view_header.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
message_viewport.js styles: Rename .scss files back to .css. 2020-09-15 16:33:28 -07:00
muting_ui.js docs: Adjust spelling s/back end/backend/. 2020-09-18 16:39:28 -07:00
muting.js js: Use destructuring for require statements. 2020-09-23 09:06:07 -04:00
narrow_state.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
narrow.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
navigate.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
night_mode.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
notifications.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
overlays.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
padded_widget.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
page_params.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
panels.js navbar_alerts: Fix navbar alerts inaccessibility. 2020-08-14 15:57:48 -07:00
people.js people: Remove unorm polyfill. 2020-09-25 16:54:25 -07:00
pill_typeahead.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
pm_conversations.js js: Convert pm_conversations module to ES6. 2020-09-01 19:55:58 -07:00
pm_list_dom.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
pm_list.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
poll_widget.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
popovers.js popover: Add UI model to view code in playground(s). 2020-09-28 16:04:54 -07:00
presence.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
reactions.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
ready.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
realm_icon.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
realm_logo.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
recent_senders.js js: Use destructuring for require statements. 2020-09-23 09:06:07 -04:00
recent_topics.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
reload_state.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
reload.js activity.js: Add setter for new_user_input. 2020-09-25 15:12:24 -07:00
reminder.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
rendered_markdown.js rendered_markdown: Display 'view code in playground' option in code blocks. 2020-09-28 16:04:54 -07:00
resize.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
rows.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
rtl.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
schema.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
scroll_bar.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
scroll_util.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
search_pill_widget.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
search_pill.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
search_suggestion.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
search_util.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
search.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
sent_messages.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
server_events_dispatch.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
server_events.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
settings_account.js setup: Add setter for password_change_in_progress. 2020-09-25 15:12:24 -07:00
settings_bots.js docs: Adjust spelling s/back end/backend/. 2020-09-18 16:39:28 -07:00
settings_config.js settings_config: Add hardcoded data structure for playground-info mappings. 2020-09-28 16:04:53 -07:00
settings_data.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
settings_display.js js: Elide .js and .ts extensions from imports and requires. 2020-09-01 16:43:02 -07:00
settings_emoji.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
settings_exports.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
settings_invites.js invites: Display name of referrer instead of email in invites list. 2020-09-22 15:42:53 -07:00
settings_linkifiers.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_muting.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_notifications.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_org.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
settings_panel_menu.js settings: Hide open popovers when switching panels in settings overlay. 2020-08-12 17:31:25 -07:00
settings_profile_fields.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
settings_sections.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_streams.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_toggle.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_ui.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_user_groups.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
settings_users.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
settings.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
setup.js setup: Add setter for password_change_in_progress. 2020-09-25 15:12:24 -07:00
spoilers.js docs: Capitalize Markdown consistently. 2020-08-11 10:23:06 -07:00
starred_messages.js starred_messages: Rename count() to get_count(). 2020-09-25 15:12:33 -07:00
stream_color.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
stream_create.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
stream_data.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
stream_edit.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
stream_events.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
stream_list.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
stream_muting.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
stream_pill.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
stream_popover.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
stream_sort.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
stream_topic_history.js js: Use destructuring for require statements. 2020-09-23 09:06:07 -04:00
stream_ui_updates.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
submessage.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
subs.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
templates.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
tictactoe_widget.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
timerender.js docs: Capitalize Markdown consistently. 2020-08-11 10:23:06 -07:00
todo_widget.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
top_left_corner.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
topic_generator.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
topic_list_data.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
topic_list.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
topic_zoom.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
transmit.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
tutorial.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
typeahead_helper.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
typing_data.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
typing_events.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
typing.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
ui_init.js markdown: bugfix: Fix importing pygments data for codeblock header creation. 2020-09-28 15:39:31 -07:00
ui_report.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
ui_util.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
ui.js dependencies: Downgrade simplebar to 5.2.1. 2020-09-24 16:13:47 -07:00
unread_ops.js notifications: Rename window_has_focus variable and function. 2020-09-25 15:12:24 -07:00
unread_ui.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
unread.js js: Use destructuring for require statements. 2020-09-23 09:06:07 -04:00
upload_widget.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
upload.js compose: Refactor autosize_textarea to work while editing messages. 2020-09-21 15:43:17 -07:00
user_events.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
user_groups.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
user_pill.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
user_search.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
user_status_ui.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
user_status.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
util.js docs: Capitalize Markdown consistently. 2020-08-11 10:23:06 -07:00
vdom.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
widgetize.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
zcommand.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
zform.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
zulip.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00