diff --git a/IPython/html/static/widgets/js/widget_box.js b/IPython/html/static/widgets/js/widget_box.js index e7850ce..f31f40b 100644 --- a/IPython/html/static/widgets/js/widget_box.js +++ b/IPython/html/static/widgets/js/widget_box.js @@ -146,224 +146,8 @@ define([ }, }); - var PopupView = BoxView.extend({ - - render: function(){ - /** - * Called when view is rendered. - */ - var that = this; - - this.$el.on("remove", function(){ - that.$backdrop.remove(); - }); - this.$backdrop = $('
') - .appendTo($('#notebook-container')) - .addClass('modal-dialog') - .css('position', 'absolute') - .css('left', '0px') - .css('top', '0px'); - this.$window = $('
') - .appendTo(this.$backdrop) - .addClass('modal-content widget-modal') - .mousedown(function(){ - that.bring_to_front(); - }); - - // Set the elements array since the this.$window element is not child - // of this.$el and the parent widget manager or other widgets may - // need to know about all of the top-level widgets. The IPython - // widget manager uses this to register the elements with the - // keyboard manager. - this.additional_elements = [this.$window]; - - this.$title_bar = $('
') - .addClass('popover-title') - .appendTo(this.$window) - .mousedown(function(){ - that.bring_to_front(); - }); - this.$close = $('