diff --git a/IPython/html/static/notebook/js/widgets/container.js b/IPython/html/static/notebook/js/widgets/container.js index ffedeee31..458c7dd7a 100644 --- a/IPython/html/static/notebook/js/widgets/container.js +++ b/IPython/html/static/notebook/js/widgets/container.js @@ -78,19 +78,62 @@ define(["notebook/js/widget"], function(widget_manager) { }); this.$window = $('
') .addClass('modal widget-modal') - .appendTo($('#notebook-container')); + .appendTo($('#notebook-container')) + .mousedown(function(){ + that.bring_to_front(); + }); this.$title_bar = $('
') .addClass('popover-title') - .appendTo(this.$window); - var that = this; - $('