Permalink
Browse files

merging in @danring's fix

  • Loading branch information...
2 parents 7827faa + 15137db commit 6851acf6f9c2aa9fb0926e6a5ce8e01928a3cbdd @jhollingworth committed Jun 15, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/bootstrap-wysihtml5.js
@@ -228,6 +228,9 @@
toolbar.find('a[data-wysihtml5-command=insertImage]').click(function() {
insertImageModal.modal('show');
+ insertImageModal.on('click.dismiss.modal', '[data-dismiss="modal"]', function(e) {
+ e.stopPropagation();
+ });
return false;
});
},
@@ -269,8 +272,13 @@
toolbar.find('a[data-wysihtml5-command=createLink]').click(function() {
insertLinkModal.modal('show');
+ insertLinkModal.on('click.dismiss.modal', '[data-dismiss="modal"]', function(e) {
+ e.stopPropagation();
+ });
return false;
});
+
+
}
};

0 comments on commit 6851acf

Please sign in to comment.