zulip/templates
Sayam Samal 9a12d1798e read_receipts: Fix duplication bug when opening menu repeatedly.
The (1) delay in fetching the read receipts data from the api call to
`/json/messages/${message_id}/read_receipts`; followed by the execution
of the success callback function, and the (2) use of `.append()` to
render the modal and user list, together lead to duplication of the read
receipts modal and also the user list inside the read receipts menu.

This commit adds a check to set the read receipts menu contents only if
the read receipts modal for the selected message ID is open by the time
the network request is resolved.

In addition, this commit also uses the `on_shown` hook instead of the
`on_show` hook in the read receipts modal logic, to add a delay in the
calling of the read receipts API, which prevents the stacking of the
requests.
2024-02-22 10:49:29 -08:00
..
analytics templates: Move support templates to /templates/corporate/support. 2024-01-30 10:06:48 -08:00
confirmation google_analytics: Track realm registration separately from user signup. 2023-03-08 11:34:36 -08:00
corporate portico: Link to Semsee case study. 2024-02-22 10:33:31 -08:00
tests
two_factor css: Remove unused btn-block styles. 2024-01-25 18:35:38 -08:00
zerver read_receipts: Fix duplication bug when opening menu repeatedly. 2024-02-22 10:49:29 -08:00
zilencer templates: Move remote_realm_server_mismatch_error.html to zerver. 2024-01-15 16:50:48 -08:00
.gitignore
4xx.html csrf_failure: Update error page. 2024-01-10 09:49:24 -08:00
404.html csrf_failure: Update error page. 2024-01-10 09:49:24 -08:00
500.html templates: Use static() helper to generate /static/ URLs. 2023-02-14 17:17:06 -05:00