mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
This commit renames the class of both cancel button and the cross icon to close-modal-btn. This change is a prep commit for enabling background events on 'hidden.bs.modal' event. As we would enable background events in furhter commit using the 'hidden.bs.modal' event, we would need to remove the 'hide.bs.modal' event of deactivation_stream_modal which removes the modal element from DOM. When we remove this we would need a e.stopPropagation call to avoid unexpected closing of subscription settings, which was not a problem before as the element was removed from DOM before the actual closing of modal. So instead of adding a separate `e.stopPropagation' call, we can use the same handler that is being used for stream privacy modal and this is the reason the class name of cancel button of privacy modal is being changed.
15 lines
866 B
Handlebars
15 lines
866 B
Handlebars
<div id="stream_privacy_modal" class="modal modal-bg hide fade new-style" tabindex="-1" role="dialog" aria-labelledby="stream_privacy_modal_label" aria-hidden="true">
|
|
<div class="modal-header">
|
|
<button type="button" class="close close-modal-btn" data-dismiss="modal" aria-label="{{t 'Close' }}"><span aria-hidden="true">×</span></button>
|
|
<h3 id="stream_privacy_modal_label">{{t "Change stream permissions for #" }}{{ stream_name }}<span class="email"></span></h3>
|
|
</div>
|
|
{{> stream_types }}
|
|
<div class="modal-footer">
|
|
<button class="button rounded close-modal-btn" data-dismiss="modal">{{t "Cancel" }}</button>
|
|
<button class="button rounded btn-danger" id="change-stream-privacy-button"
|
|
tabindex="-1" data-stream-id="{{stream_id}}">
|
|
{{t "Save changes"}}
|
|
</button>
|
|
</div>
|
|
</div>
|