Improved token copy dialog.
This commit is contained in:
parent
888e0e79b8
commit
5f5e97bb40
2 changed files with 5 additions and 3 deletions
|
@ -127,7 +127,7 @@ class Create extends App.ControllerModal
|
|||
App.view('profile/token_access_created')(
|
||||
name: ui.newToken.name
|
||||
)
|
||||
post: ->
|
||||
onShown: ->
|
||||
@$('.js-select').on('click', ui.selectAll)
|
||||
onCancel: ->
|
||||
@close()
|
||||
|
|
|
@ -152,8 +152,10 @@
|
|||
$(window).on('keydown.dismiss.bs.modal', $.proxy(function (e) {
|
||||
e.which == 27 && this.hide()
|
||||
// 2016-08-21: added event to capture esc for cancel
|
||||
e = $.Event('dismiss.bs.modal')
|
||||
this.$element.trigger(e)
|
||||
if (e.which == 27) {
|
||||
e = $.Event('dismiss.bs.modal')
|
||||
this.$element.trigger(e)
|
||||
}
|
||||
// -
|
||||
}, this))
|
||||
} else if (!this.isShown) {
|
||||
|
|
Loading…
Reference in a new issue