s/ModalView/PopupView

This commit is contained in:
Jonathan Frederic 2014-01-21 17:09:49 -08:00
parent 7ce9f37b17
commit 046280b51a
3 changed files with 7 additions and 7 deletions

View File

@ -60,7 +60,7 @@ define(["notebook/js/widgets/widget"], function(WidgetManager) {
WidgetManager.register_widget_view('ContainerView', ContainerView); WidgetManager.register_widget_view('ContainerView', ContainerView);
var ModalView = IPython.DOMWidgetView.extend({ var PopupView = IPython.DOMWidgetView.extend({
render: function(){ render: function(){
// Called when view is rendered. // Called when view is rendered.
var that = this; var that = this;
@ -244,7 +244,7 @@ define(["notebook/js/widgets/widget"], function(WidgetManager) {
this.show(); this.show();
} }
return ModalView.__super__.update.apply(this); return PopupView.__super__.update.apply(this);
}, },
_get_selector_element: function(selector) { _get_selector_element: function(selector) {
@ -264,9 +264,9 @@ define(["notebook/js/widgets/widget"], function(WidgetManager) {
return this.$window.find(selector.substring(6)); return this.$window.find(selector.substring(6));
} }
} else { } else {
return ModalView.__super__._get_selector_element.apply(this, [selector]); return PopupView.__super__._get_selector_element.apply(this, [selector]);
} }
}, },
}); });
WidgetManager.register_widget_view('ModalView', ModalView); WidgetManager.register_widget_view('PopupView', PopupView);
}); });

View File

@ -2,7 +2,7 @@ from .widget import Widget, DOMWidget
from .widget_bool import CheckBoxWidget, ToggleButtonWidget from .widget_bool import CheckBoxWidget, ToggleButtonWidget
from .widget_button import ButtonWidget from .widget_button import ButtonWidget
from .widget_container import ContainerWidget, ModalWidget from .widget_container import ContainerWidget, PopupWidget
from .widget_float import FloatTextWidget, BoundedFloatTextWidget, FloatSliderWidget, FloatProgressWidget from .widget_float import FloatTextWidget, BoundedFloatTextWidget, FloatSliderWidget, FloatProgressWidget
from .widget_image import ImageWidget from .widget_image import ImageWidget
from .widget_int import IntTextWidget, BoundedIntTextWidget, IntSliderWidget, IntProgressWidget from .widget_int import IntTextWidget, BoundedIntTextWidget, IntSliderWidget, IntProgressWidget

View File

@ -45,8 +45,8 @@ class ContainerWidget(DOMWidget):
self._children = children self._children = children
class ModalWidget(ContainerWidget): class PopupWidget(ContainerWidget):
view_name = Unicode('ModalView', sync=True) view_name = Unicode('PopupView', sync=True)
description = Unicode(sync=True) description = Unicode(sync=True)
button_text = Unicode(sync=True) button_text = Unicode(sync=True)