diff --git a/IPython/html/static/notebook/js/widgets/container.js b/IPython/html/static/notebook/js/widgets/container.js index 7a2574c88..9db6b7a06 100644 --- a/IPython/html/static/notebook/js/widgets/container.js +++ b/IPython/html/static/notebook/js/widgets/container.js @@ -59,4 +59,124 @@ define(["notebook/js/widget"], function(widget_manager) { }); widget_manager.register_widget_view('ContainerView', ContainerView); -}); \ No newline at end of file + + + var ModalView = IPython.WidgetView.extend({ + + render: function(){ + var that = this; + this.$el + .html('') + .on("remove", function(){ + that.$window.remove(); + }); + this.$window = $('
') + .addClass('modal widget-modal') + .appendTo($('#notebook-container')); + var title_bar = $('
') + .addClass('popover-title') + .appendTo(this.$window); + var that = this; + $('