mirror of https://github.com/zulip/zulip.git
confirm_dialog: Add close-modal-btn class to cancel buttons.
This commit adds "close-modal-btn" class to cancel button in the modal and cross icon. We do this change because we would add a modal for unsubscribing from private stream in further commit using confirm_dialog module. We would need to avoid the unexpected closing of stream settings on closing the modal which can be done by calling 'e.stopPropagation' to prevent propagating of events in other elements. Thus, adding this class will mean that the handler used for stream privacy modal for this same task will be used for unsubscribe modal also.
This commit is contained in:
parent
208f3d7f1b
commit
60f486d941
|
@ -1,12 +1,12 @@
|
|||
<div class="modal modal-bg new-style hide fade" id="confirm_dialog_modal" tabindex="-1" role="dialog" aria-labelledby="confirm_dialog_modal" aria-hidden="true">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="{{t 'Close' }}"><span aria-hidden="true">×</span></button>
|
||||
<button type="button" class="close close-modal-btn" data-dismiss="modal" aria-label="{{t 'Close' }}"><span aria-hidden="true">×</span></button>
|
||||
<h3 class="confirm_dialog_heading"></h3>
|
||||
</div>
|
||||
<div class="modal-body confirm_dialog_body">
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button class="button rounded" data-dismiss="modal">{{t "Cancel" }}</button>
|
||||
<button class="button rounded close-modal-btn" data-dismiss="modal">{{t "Cancel" }}</button>
|
||||
<button class="button rounded btn-danger confirm_dialog_yes_button"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue