From 3f2dc8815471c8c220a10665ce196f8feeed4935 Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Mon, 29 Dec 2014 08:08:20 -0800 Subject: [PATCH] Remove the popup widget --- IPython/html/static/widgets/js/widget_box.js | 216 ------------------- IPython/html/widgets/__init__.py | 4 +- IPython/html/widgets/widget_box.py | 11 - 3 files changed, 2 insertions(+), 229 deletions(-) diff --git a/IPython/html/static/widgets/js/widget_box.js b/IPython/html/static/widgets/js/widget_box.js index e7850ce20..f31f40b40 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 = $('