mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +01:00
adding stop propagation for keydown event in bootstrap dialog
This commit is contained in:
parent
5432c9c8a4
commit
fb5546111e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user