-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ask confirmation when deleting selector or sitemap (#64)
* Added delete confirmation window. Needed fix bug * Fixed bag * Fixed bag of clicking anywhere outside the modal * Fixed bag of clicking anywhere outside the modal * Changed the appearance and mechanism of the confirm panel * Fixed eng messages * Fixed code style * Fixed style problems and divided showConfirmPanel function on two (show and wait) * added spaces * Fixed styles problems * Bad fix for backdrop click * working example * tried to move i18n keys to view + some renaming * revert to 'Confirm/Подтвердить' for submit label * Fixed confirm and cancel buttons Co-authored-by: Max Varlamov <[email protected]>
- Loading branch information
Showing
5 changed files
with
95 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<div class="modal fade" id="confirm-action-modal"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h4 | ||
class="modal-title" | ||
id="modal-title" | ||
data-i18n="modal_confirm_action_title_{{action}}" | ||
></h4> | ||
<h5 | ||
id="modal-message" | ||
data-i18n="modal_confirm_action_message_{{action}}" | ||
hidden | ||
></h5> | ||
</div> | ||
<div class="modal-footer"> | ||
<button | ||
class="btn btn-default" | ||
id="modal-cancel" | ||
data-i18n="modal_confirm_action_cancel_{{action}}" | ||
data-dismiss="modal" | ||
></button> | ||
<button | ||
class="btn btn-primary" | ||
id="modal-submit" | ||
data-i18n="modal_confirm_action_submit_{{action}}" | ||
></button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters