zulip/static/js
Harsh Srivastava cd1601a858
left sidebar: Fix exception when deleting last stream.
Apparently, we never tested the unlikely behavior of deleting the last stream,
and doing so would result in exceptions being thrown (and thus no UI update).

Fixes: #16691
2021-03-14 22:34:07 -07:00
..
analytics js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
billing js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
bundles js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
portico js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
stats js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
types eslint: Remove and prohibit unused eslint-disable directives. 2020-12-10 18:08:45 -08:00
activity.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
admin.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
alert_words.js js: Convert static/js/alert_words.js to ES6 module. 2021-02-10 10:27:14 -08:00
alert_words_ui.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
archive.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
attachments_ui.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
avatar.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
blueslip.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
blueslip_stacktrace.ts eslint: Fix unicorn/error-message. 2020-12-22 16:14:28 -08:00
bot_data.js node tests: Add test() wrapper to bot_data. 2021-03-14 08:11:25 -04:00
buddy_data.js js: Convert static/js/unread.js to ES6 module. 2021-03-02 17:06:35 -08:00
buddy_list.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
channel.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
click_handlers.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
color_data.js js: Convert static/js/color_data.js to ES6 module. 2021-02-28 14:23:00 -08:00
colorspace.js js: Convert static/js/colorspace.js to ES6 module. 2021-02-10 10:27:14 -08:00
common.js zjsunit: Do not run $(...) automatically. 2021-03-13 11:48:50 -05:00
components.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
compose.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
compose_actions.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
compose_fade.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
compose_pm_pill.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
compose_state.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
compose_ui.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
composebox_typeahead.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
condense.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
confirm_dialog.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
copy_and_paste.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
csrf.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
css_variables.js styles: Use range context queries to eliminate *_max variables. 2021-02-05 09:23:59 -08:00
debug.js eslint: Fix unicorn/no-array-for-each. 2021-01-25 14:53:19 -08:00
desktop_integration.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
drafts.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
dropdown_list_widget.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
echo.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
emoji_picker.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
emojisets.js eslint: Fix unicorn/prefer-add-event-listener. 2020-10-07 16:00:33 -07:00
favicon.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
feature_flags.js js: Convert static/js/feature_flags.js to ES6 module with modzulator. 2021-02-10 10:27:14 -08:00
feedback_widget.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
fetch_status.js js: Convert static/js/message_scroll.js to ES6 module. 2021-02-28 14:23:00 -08:00
filter.js js: Convert static/js/unread.js to ES6 module. 2021-03-02 17:06:35 -08:00
floating_recipient_bar.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
fold_dict.ts typescript: Enable strictNullChecks. 2020-07-28 11:01:35 -07:00
gear_menu.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
global.d.ts eslint: Remove unneeded globals. 2021-03-02 17:06:35 -08:00
hash_util.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
hashchange.js node tests: Clean up hashchange tests. 2021-03-14 08:11:25 -04:00
hbs.d.ts
hotkey.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
hotspots.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
huddle_data.js node tests: Add test() wrapper for suggestions. 2021-03-12 15:29:23 -05:00
i18n.js docs: Add comment links to i18n documentation. 2020-09-18 11:44:04 -07:00
info_overlay.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
input_pill.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
invite.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
keydown_util.js js: Convert static/js/keydown_util.js to ES6 module. 2021-02-28 14:23:00 -08:00
lazy_set.js eslint: Fix unicorn/prefer-number-properties. 2020-10-07 16:00:33 -07:00
lightbox.js node tests: Add test() wrapper for lightbox. 2021-03-14 10:46:45 -04:00
lightbox_canvas.js js: Convert static/js/overlays.js to ES6 module. 2021-02-28 14:23:00 -08:00
list_cursor.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
list_util.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
list_widget.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
loading.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
local_message.js js: Convert static/js/message_events.js to ES6 module. 2021-03-02 17:06:35 -08:00
localstorage.js js: Convert static/js/localstorage.js to ES6 module. 2021-02-23 20:36:01 -08:00
markdown.js js: Convert static/js/message_store.js to ES6 module. 2021-02-28 14:23:00 -08:00
markdown_config.js js: Convert static/js/hash_util.js to ES6 module. 2021-02-28 14:23:00 -08:00
message_edit.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
message_edit_history.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
message_events.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
message_fetch.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
message_flags.js js: Convert static/js/ui.js to ES6 module. 2021-03-02 17:06:35 -08:00
message_list.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
message_list_data.js js: Convert static/js/unread.js to ES6 module. 2021-03-02 17:06:35 -08:00
message_list_view.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
message_live_update.js js: Convert static/js/message_list.js to ES6 module. 2021-03-02 17:06:35 -08:00
message_scroll.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
message_store.js node tests: Clear data for message_store tests. 2021-03-10 07:07:34 -05:00
message_util.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
message_view_header.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
message_viewport.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
muting.js js: Convert static/js/timerender.js to ES6 module. 2021-02-28 14:23:00 -08:00
muting_ui.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
narrow.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
narrow_state.js js: Convert static/js/unread.js to ES6 module. 2021-03-02 17:06:35 -08:00
navigate.js js: Convert static/js/unread_ops.js to ES6 module. 2021-03-02 17:06:35 -08:00
night_mode.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
notifications.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
overlays.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
padded_widget.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
page_params.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
panels.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
peer_data.js node tests: Clear data for peer_data tests. 2021-03-10 07:07:34 -05:00
people.js js: Convert static/js/message_store.js to ES6 module. 2021-02-28 14:23:00 -08:00
pill_typeahead.js js: Convert static/js/typeahead_helper.js to ES6 module. 2021-02-28 14:23:00 -08:00
pm_conversations.js node tests: Clean up pm_conversations. 2021-03-12 04:42:37 -05:00
pm_list.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
pm_list_dom.js js: Convert static/js/pm_list_dom.js to ES6 module. 2021-02-28 14:23:00 -08:00
poll_widget.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
popovers.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
presence.js node tests: Clear data for presence tests. 2021-03-12 11:18:44 -05:00
reactions.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
ready.js ready: Wait for other ready callbacks before marking app loaded. 2021-03-14 17:36:22 -07:00
realm_icon.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
realm_logo.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
recent_senders.js node tests: Clean up recent_senders test. 2021-03-12 11:18:44 -05:00
recent_topics.js recent_topics: Don't switch focus to input on `k` / `j` keypress. 2021-03-13 05:43:24 -05:00
reload.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
reload_state.js channel: Sever dependency on reload. 2021-03-09 17:43:07 -08:00
reminder.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
rendered_markdown.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
resize.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
rows.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
rtl.js js: Convert static/js/rtl.js to ES6 module. 2021-02-28 14:23:00 -08:00
schema.js js: Convert static/js/schema.js to ES6 module. 2021-02-10 10:27:14 -08:00
scroll_bar.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
scroll_util.js js: Convert static/js/ui.js to ES6 module. 2021-03-02 17:06:35 -08:00
search.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
search_pill.js js: Convert static/js/input_pill.js to ES6 module. 2021-03-02 17:06:35 -08:00
search_pill_widget.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
search_suggestion.js js: Convert static/js/search_suggestion.js to ES6 module. 2021-02-28 14:23:00 -08:00
search_util.js js: Convert static/js/search_util.js to ES6 module. 2021-02-10 10:27:14 -08:00
sent_messages.js js: Convert static/js/server_events.js to ES6 module. 2021-02-28 14:23:00 -08:00
server_events.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
server_events_dispatch.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
settings.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
settings_account.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
settings_bots.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
settings_config.js display_settings: Allow user to set default_view. 2021-03-11 18:09:08 -08:00
settings_data.js js: Convert static/js/settings_data.js to ES6 module. 2021-02-10 10:27:14 -08:00
settings_display.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
settings_emoji.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
settings_exports.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
settings_invites.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
settings_linkifiers.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
settings_muting.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
settings_notifications.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
settings_org.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
settings_panel_menu.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
settings_profile_fields.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
settings_sections.js js: Convert static/js/settings_profile_fields.js to ES6 module. 2021-03-02 17:06:35 -08:00
settings_streams.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
settings_toggle.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
settings_ui.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
settings_user_groups.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
settings_users.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
setup.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
spoilers.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
starred_messages.js js: Convert static/js/starred_messages.js to ES6 module. 2021-02-28 14:23:00 -08:00
stream_color.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
stream_create.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
stream_data.js js: Convert static/js/message_list.js to ES6 module. 2021-03-02 17:06:35 -08:00
stream_edit.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
stream_events.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
stream_list.js left sidebar: Fix exception when deleting last stream. 2021-03-14 22:34:07 -07:00
stream_muting.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
stream_pill.js js: Convert static/js/stream_data.js to ES6 module. 2021-02-28 14:23:00 -08:00
stream_popover.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
stream_sort.js code cleanup: Remove obsolete stream_sort code. 2021-03-13 11:48:50 -05:00
stream_topic_history.js js: Convert static/js/unread.js to ES6 module. 2021-03-02 17:06:35 -08:00
stream_ui_updates.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
submessage.js js: Convert static/js/widgetize.js to ES6 module. 2021-03-02 17:06:35 -08:00
subs.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
templates.js js: Convert static/js/templates.js to ES6 module. 2021-02-10 10:27:14 -08:00
timerender.js node tests: Ensure clean data for timerender tests. 2021-03-14 11:38:21 -04:00
todo_widget.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
top_left_corner.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
topic_generator.js js: Convert static/js/unread.js to ES6 module. 2021-03-02 17:06:35 -08:00
topic_list.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
topic_list_data.js js: Convert static/js/unread.js to ES6 module. 2021-03-02 17:06:35 -08:00
topic_zoom.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
transmit.js js: Convert static/js/transmit.js to ES6 module. 2021-02-28 14:23:00 -08:00
tutorial.js js: Convert static/js/narrow.js to ES6 module. 2021-03-02 17:06:35 -08:00
typeahead_helper.js compose: Remove presence circles for wildcard users. 2021-03-12 02:10:21 -08:00
typing.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
typing_data.js js: Convert static/js/typing_data.js to ES6 module. 2021-02-10 10:27:14 -08:00
typing_events.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
ui.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
ui_init.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
ui_report.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
ui_util.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
unread.js minor: Don't export unread_topic_counter. 2021-03-10 07:07:34 -05:00
unread_ops.js js: Convert static/js/message_list.js to ES6 module. 2021-03-02 17:06:35 -08:00
unread_ui.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
upload.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
upload_widget.js js: Convert static/js/upload_widget.js to ES6 module. 2021-02-28 14:23:00 -08:00
user_events.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
user_groups.js js: Convert static/js/user_groups.js to ES6 module. 2021-02-28 14:23:00 -08:00
user_pill.js js: Convert static/js/input_pill.js to ES6 module. 2021-03-02 17:06:35 -08:00
user_search.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
user_status.js node tests: Avoid intra-test leaks in buddy_data. 2021-03-08 10:45:17 -05:00
user_status_ui.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
util.js js: Convert static/js/util.js to ES6 module. 2021-02-10 10:27:14 -08:00
vdom.js js: Convert static/js/vdom.js to ES6 module. 2021-02-28 14:23:00 -08:00
widgetize.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
zcommand.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
zform.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
zulip.js js: Convert static/js/message_list.js to ES6 module. 2021-03-02 17:06:35 -08:00
zulip_test.js zulip_test: Re-export internal functions used by Puppeteer tests. 2021-03-02 17:06:35 -08:00