adding stop propagation for keydown event in bootstrap dialog

This commit is contained in:
Ezequiel Bergamaschi 2014-07-06 01:06:23 -03:00
parent 5432c9c8a4
commit fb5546111e

View File

@ -15,6 +15,9 @@ var BootstrapDialog = new Class({
this.options.onRemoveClickData.dialog = this; this.options.onRemoveClickData.dialog = this;
this._native = $('<div class="modal fade"></div>').append('<div class="modal-dialog" style="margin:150px auto"></div>'); this._native = $('<div class="modal fade"></div>').append('<div class="modal-dialog" style="margin:150px auto"></div>');
var content = $('<div class="modal-content"></div>'); var content = $('<div class="modal-content"></div>');
content.on('keydown', function(event) {
event.stopPropagation();
});
var header = this._buildHeader(title); var header = this._buildHeader(title);
if (header) { if (header) {
content.append(header); content.append(header);