add missing event parameter

stable
Juanfran 2014-11-04 15:55:24 +01:00
parent 3be8e8561e
commit 6161f7e017
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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()

View File

@ -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()