Browse Source

Merge pull request #263 from luisrudge/master

fixes #262
pull/2229/head
Jack Lukic 11 years ago
parent
commit
b10e1c2d69
1 changed files with 7 additions and 2 deletions
  1. 9
      src/modules/modal.js

9
src/modules/modal.js

@ -164,8 +164,13 @@ $.fn.modal = function(parameters) {
escapeKey = 27
;
if(keyCode == escapeKey) {
module.debug('Escape key pressed hiding modal');
module.hide();
if(settings.closable) {
module.debug('Escape key pressed hiding modal');
module.hide();
}
else {
module.debug('Escape key pressed, but closable is set to false');
}
event.preventDefault();
}
},

Loading…
Cancel
Save