Skip to content

Commit

Permalink
740923 - When creating or editing a permission, hitting enter with the
Browse files Browse the repository at this point in the history
name field focused will now cause the permission to save.
(cherry picked from commit 7143ed2)
  • Loading branch information
ehelms committed Feb 21, 2012
1 parent 5bdf85b commit 2813fb9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/public/javascripts/role_sliding_tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,8 @@ KT.roles.permissionWidget = function(){
handleKeypress = function(event){
if( event.which === 13 ){
event.preventDefault();
if( current_stage === 'details' && $('#description').is(":focus") ){
if( current_stage === 'details' && $('#permission_name').is(":focus") ){
handleDone();
} else {
handleNext();
}
}
},
Expand Down

0 comments on commit 2813fb9

Please sign in to comment.