1
0
Fork 0

fixed a modal view bug

This commit is contained in:
Heiko Kernbach 2014-08-20 11:28:31 +02:00
parent 727d8a3f17
commit ddb6155870
1 changed files with 3 additions and 3 deletions

View File

@ -100,13 +100,13 @@
createModalHotkeys: function() { createModalHotkeys: function() {
//submit modal //submit modal
$(this.el).bind('keydown', 'ctrl+return', function(){ $(this.el).bind('keydown', 'ctrl+return', function(){
$('.button-success').click(); $('.modal-footer .button-success').click();
}); });
$("input", $(this.el)).bind('keydown', 'return', function(){ $("input", $(this.el)).bind('keydown', 'return', function(){
$('.button-success').click(); $('.modal-footer .button-success').click();
}); });
$("select", $(this.el)).bind('keydown', 'return', function(){ $("select", $(this.el)).bind('keydown', 'return', function(){
$('.button-success').click(); $('.modal-footer .button-success').click();
}); });
}, },