mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
This commit changes the code to not remove the modal element from DOM after closing the modal for the deactivation stream modal and stream privacy modal. This is a prep commit for enabling background mouse events unconditionally using 'hidden.bs.modal', because removing element using '.remove' remove all events attached to it and this will also remove the 'hidden.bs.modal' event which we do not want. This remove behavior is inconsistent as we remove some of the modals but do not remove some, so for now we are not removing the modal after closing but it is anyway removed before opening a modal to handle case of having two elements of same id and avoids any bugs. This behavior of when to remove the element from DOM and when to not remove needs to be discussed and may be modified in future. |
||
|---|---|---|
| .. | ||
| assets | ||
| audio | ||
| generated | ||
| html | ||
| images | ||
| js | ||
| shared | ||
| styles | ||
| templates | ||
| third | ||
| .gitignore | ||