add missing event parameter
parent
3be8e8561e
commit
6161f7e017
|
@ -150,7 +150,7 @@ EditRoleDirective = ($repo, $confirm) ->
|
|||
|
||||
$el.on "click", "a.save", submit
|
||||
|
||||
$el.on "keyup", "input", ->
|
||||
$el.on "keyup", "input", (event) ->
|
||||
if event.keyCode == 13 # Enter key
|
||||
submit()
|
||||
else if event.keyCode == 27 # ESC key
|
||||
|
|
|
@ -508,7 +508,7 @@ EditableSubjectDirective = ($rootscope, $repo, $confirm, $loading) ->
|
|||
$el.on "click", ".save", ->
|
||||
save()
|
||||
|
||||
$el.on "keyup", "input", ->
|
||||
$el.on "keyup", "input", (event) ->
|
||||
if event.keyCode == 13
|
||||
save()
|
||||
else if event.keyCode == 27
|
||||
|
@ -616,7 +616,7 @@ EditableDescriptionDirective = ($window, $document, $rootscope, $repo, $confirm,
|
|||
promise.finally ->
|
||||
$loading.finish($el.find('.save-container'))
|
||||
|
||||
$el.on "keyup", "textarea", ->
|
||||
$el.on "keyup", "textarea", (event) ->
|
||||
if event.keyCode == 27
|
||||
$scope.item.revert()
|
||||
$el.find('.edit-description').hide()
|
||||
|
|
|
@ -295,7 +295,7 @@ EditableWikiContentDirective = ($window, $document, $repo, $confirm, $loading, $
|
|||
$el.on "click", ".cancel", ->
|
||||
cancelEdition()
|
||||
|
||||
$el.on "keyup", "textarea", ->
|
||||
$el.on "keyup", "textarea", (event) ->
|
||||
if event.keyCode == 27
|
||||
cancelEdition()
|
||||
|
||||
|
|
Loading…
Reference in New Issue