confirm_dialog: Make it usable outside settings.
* Currently, the confirm_dialog is used only in
the settings pane, which already has the `new-style`
class in the main `settings_overlay.hbs` file. So,
the confirm modal is rendered correctly there. But to
make it available for use outside of the settings pane,
we add the `new-style` class to the confirm container
itself, without which, the buttons look ugly.
* The other change here is the click handler for
removing the modal element. Previously, when the
modal was closed (with any of the "yes"/"no"/"cross"
buttons), there was a small time interval of around
a second during which the modal had disappeared,
but the background content was still in the faded-out
state. This change fixes this glitch. This glitch was
probably not noticable earlier, because the settings
pane itself causes the background to be slightly faded
out.
2021-03-20 10:51:17 +01:00
|
|
|
<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">
|
2018-09-12 17:43:38 +02:00
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" 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 btn-danger confirm_dialog_yes_button"></button>
|
|
|
|
</div>
|
|
|
|
</div>
|