zulip/static
Tim Abbott 828867c733 overlays: Allow calling open_modal with a modal already open.
Previously, our modal system prevented opening a modal when one was
already open. It appears this was implemented to work around the fact
that we're using Micromodal selectors to determine if a modal is open
(and those don't update until after an animation frame).

We'd like to support opening the full user profile and manage user
modals while read receipts is open. While we could work around this in
that place, it feels like one needs a lot of documentation in order to
add a setTimeout in those code paths.

So we instead make open_modal support this, with a guard to prevent
infinite recursion in case of future bugs.

Note that dialog_widget was already closing modals before opening the
next one, so this is a behavior change only for our 3 modals that do
not use dialog_widget.

(I'm not sure why the `dialog_widget` modals did not already require a
delay, but likely there's some CSS difference).

We likely will want to redo this to instead use a better state
tracking system.

See https://chat.zulip.org/#narrow/stream/49-development-help/topic/close.20and.20open.20another.20modal.20immediately
for discussion.
2022-08-12 13:16:35 -07:00
..
assets assets: Remove license for previously deleted emoji images. 2022-06-10 12:27:48 -07:00
audio/notification_sounds audio: Remove the copy of zulip.ogg outside notification_sounds. 2022-06-10 12:27:48 -07:00
generated
html templates: Mark all void tags as self-closing. 2021-04-21 09:49:34 -07:00
images settings: Send email after deactivating user. 2022-08-06 21:41:53 -07:00
js overlays: Allow calling open_modal with a modal already open. 2022-08-12 13:16:35 -07:00
shared gear_menu: Allow spectators to select their default language. 2022-06-01 17:08:00 -07:00
styles settings: Add tooltip for user read receipts setting. 2022-08-12 11:21:44 -07:00
templates settings: Add UI for changing read receipts realm_user_default. 2022-08-12 11:25:35 -07:00
third bootstrap: Remove many unused Bootstrap CSS rules. 2022-06-28 16:45:48 -07:00
.gitignore docs: Add missing space in “time zone”. 2022-02-24 14:05:12 -08:00