Make the close button on the top-right of modals functional.

This commit is contained in:
FelisCatus 2014-09-25 22:46:23 +08:00
parent be0255cbda
commit c3b751a3fb
7 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
.modal-header
button.close(type='button', data-dismiss='modal')
button.close(type='button' ng-click='$dismiss()')
span(aria-hidden='true') ×
span.sr-only {{'dialog_close' | tr}}
h4.modal-title {{'options_modalHeader_applyOptions' | tr}}

View File

@ -1,5 +1,5 @@
.modal-header
button.close(type='button', data-dismiss='modal')
button.close(type='button' ng-click='$dismiss()')
span(aria-hidden='true') ×
span.sr-only {{'dialog_close' | tr}}
h4.modal-title {{'options_modalHeader_cannotDeleteProfile' | tr}}

View File

@ -1,5 +1,5 @@
.modal-header
button.close(type='button', data-dismiss='modal')
button.close(type='button' ng-click='$dismiss()')
span(aria-hidden='true') ×
span.sr-only {{'dialog_close' | tr}}
h4.modal-title {{'options_modalHeader_deleteProfile' | tr}}

View File

@ -1,6 +1,6 @@
form(ng-submit='newProfile.$valid && $close(profile)' name='newProfile')
.modal-header
button.close(type='button', data-dismiss='modal')
button.close(type='button' ng-click='$dismiss()')
span(aria-hidden='true') ×
span.sr-only Close
h4.modal-title {{'options_modalHeader_newProfile' | tr}}

View File

@ -1,6 +1,6 @@
form(ng-submit='renameProfile.$valid && $close(newName)' name='renameProfile')
.modal-header
button.close(type='button', data-dismiss='modal')
button.close(type='button' ng-click='$dismiss()')
span(aria-hidden='true') ×
span.sr-only {{'dialog_close' | tr}}
h4.modal-title {{'options_modalHeader_renameProfile' | tr}}

View File

@ -1,5 +1,5 @@
.modal-header
button.close(type='button', data-dismiss='modal')
button.close(type='button' ng-click='$dismiss()')
span(aria-hidden='true') ×
span.sr-only {{'dialog_close' | tr}}
h4.modal-title {{'options_modalHeader_deleteRule' | tr}}

View File

@ -1,5 +1,5 @@
.modal-header
button.close(type='button', data-dismiss='modal')
button.close(type='button' ng-click='$dismiss()')
span(aria-hidden='true') ×
span.sr-only {{'dialog_close' | tr}}
h4.modal-title {{'options_modalHeader_resetRules' | tr}}