From 3bb7cf6aa0c0d42ce5d27c8889686006f8036651 2014-02-22 00:25:52 From: Jonathan Frederic Date: 2014-02-22 00:25:52 Subject: [PATCH] Updated require references to point to new files --- diff --git a/IPython/html/static/notebook/js/main.js b/IPython/html/static/notebook/js/main.js index f8b9970..e4e6d3d 100644 --- a/IPython/html/static/notebook/js/main.js +++ b/IPython/html/static/notebook/js/main.js @@ -14,7 +14,7 @@ // which make both this file fail at setting marked configuration, and textcell.js // which search marked into global. require(['components/marked/lib/marked', - 'notebook/js/widgets/init'], + 'widgets/js/init'], function (marked) { "use strict"; diff --git a/IPython/html/static/widgets/js/init.js b/IPython/html/static/widgets/js/init.js index 9d3148d..4c23488 100644 --- a/IPython/html/static/widgets/js/init.js +++ b/IPython/html/static/widgets/js/init.js @@ -10,13 +10,13 @@ //============================================================================ define([ - "notebook/js/widgets/widget_bool", - "notebook/js/widgets/widget_button", - "notebook/js/widgets/widget_container", - "notebook/js/widgets/widget_float", - "notebook/js/widgets/widget_image", - "notebook/js/widgets/widget_int", - "notebook/js/widgets/widget_selection", - "notebook/js/widgets/widget_selectioncontainer", - "notebook/js/widgets/widget_string", + "widgets/js/widget_bool", + "widgets/js/widget_button", + "widgets/js/widget_container", + "widgets/js/widget_float", + "widgets/js/widget_image", + "widgets/js/widget_int", + "widgets/js/widget_selection", + "widgets/js/widget_selectioncontainer", + "widgets/js/widget_string", ], function(){ return true; }); diff --git a/IPython/html/static/widgets/js/widget.js b/IPython/html/static/widgets/js/widget.js index 27180c8..110b06c 100644 --- a/IPython/html/static/widgets/js/widget.js +++ b/IPython/html/static/widgets/js/widget.js @@ -14,7 +14,7 @@ * @namespace IPython **/ -define(["notebook/js/widgetmanager", +define(["widgets/js/manager", "underscore", "backbone"], function(WidgetManager, _, Backbone){ diff --git a/IPython/html/static/widgets/js/widget_bool.js b/IPython/html/static/widgets/js/widget_bool.js index 6acbe76..2f4669c 100644 --- a/IPython/html/static/widgets/js/widget_bool.js +++ b/IPython/html/static/widgets/js/widget_bool.js @@ -14,7 +14,7 @@ * @namespace IPython **/ -define(["notebook/js/widgets/widget"], function(WidgetManager){ +define(["widgets/js/widget"], function(WidgetManager){ var CheckboxView = IPython.DOMWidgetView.extend({ render : function(){ diff --git a/IPython/html/static/widgets/js/widget_button.js b/IPython/html/static/widgets/js/widget_button.js index eb3c317..36a20e8 100644 --- a/IPython/html/static/widgets/js/widget_button.js +++ b/IPython/html/static/widgets/js/widget_button.js @@ -14,7 +14,7 @@ * @namespace IPython **/ -define(["notebook/js/widgets/widget"], function(WidgetManager){ +define(["widgets/js/widget"], function(WidgetManager){ var ButtonView = IPython.DOMWidgetView.extend({ render : function(){ diff --git a/IPython/html/static/widgets/js/widget_container.js b/IPython/html/static/widgets/js/widget_container.js index e6d51f6..6fcbaca 100644 --- a/IPython/html/static/widgets/js/widget_container.js +++ b/IPython/html/static/widgets/js/widget_container.js @@ -14,7 +14,7 @@ * @namespace IPython **/ -define(["notebook/js/widgets/widget"], function(WidgetManager) { +define(["widgets/js/widget"], function(WidgetManager) { var ContainerView = IPython.DOMWidgetView.extend({ render: function(){ diff --git a/IPython/html/static/widgets/js/widget_float.js b/IPython/html/static/widgets/js/widget_float.js index fe85e0c..36c2a81 100644 --- a/IPython/html/static/widgets/js/widget_float.js +++ b/IPython/html/static/widgets/js/widget_float.js @@ -14,8 +14,8 @@ * @namespace IPython **/ -define(["notebook/js/widgets/widget", - "notebook/js/widgets/widget_int"], +define(["widgets/js/widget", + "widgets/js/widget_int"], function(WidgetManager, int_widgets){ var IntSliderView = int_widgets[0]; diff --git a/IPython/html/static/widgets/js/widget_image.js b/IPython/html/static/widgets/js/widget_image.js index 26162d6..c62e18c 100644 --- a/IPython/html/static/widgets/js/widget_image.js +++ b/IPython/html/static/widgets/js/widget_image.js @@ -14,7 +14,7 @@ * @namespace IPython **/ -define(["notebook/js/widgets/widget"], function(WidgetManager){ +define(["widgets/js/widget"], function(WidgetManager){ var ImageView = IPython.DOMWidgetView.extend({ render : function(){ diff --git a/IPython/html/static/widgets/js/widget_int.js b/IPython/html/static/widgets/js/widget_int.js index 2eb7069..693ac16 100644 --- a/IPython/html/static/widgets/js/widget_int.js +++ b/IPython/html/static/widgets/js/widget_int.js @@ -14,7 +14,7 @@ * @namespace IPython **/ -define(["notebook/js/widgets/widget"], function(WidgetManager){ +define(["widgets/js/widget"], function(WidgetManager){ var IntSliderView = IPython.DOMWidgetView.extend({ render : function(){ diff --git a/IPython/html/static/widgets/js/widget_selection.js b/IPython/html/static/widgets/js/widget_selection.js index 60a4dbc..d6d4f04 100644 --- a/IPython/html/static/widgets/js/widget_selection.js +++ b/IPython/html/static/widgets/js/widget_selection.js @@ -14,7 +14,7 @@ * @namespace IPython **/ -define(["notebook/js/widgets/widget"], function(WidgetManager){ +define(["widgets/js/widget"], function(WidgetManager){ var DropdownView = IPython.DOMWidgetView.extend({ render : function(){ diff --git a/IPython/html/static/widgets/js/widget_selectioncontainer.js b/IPython/html/static/widgets/js/widget_selectioncontainer.js index ee33811..12cd9cc 100644 --- a/IPython/html/static/widgets/js/widget_selectioncontainer.js +++ b/IPython/html/static/widgets/js/widget_selectioncontainer.js @@ -14,7 +14,7 @@ * @namespace IPython **/ -define(["notebook/js/widgets/widget"], function(WidgetManager){ +define(["widgets/js/widget"], function(WidgetManager){ var AccordionView = IPython.DOMWidgetView.extend({ render: function(){ diff --git a/IPython/html/static/widgets/js/widget_string.js b/IPython/html/static/widgets/js/widget_string.js index 92bfc99..d5dd9eb 100644 --- a/IPython/html/static/widgets/js/widget_string.js +++ b/IPython/html/static/widgets/js/widget_string.js @@ -14,7 +14,7 @@ * @namespace IPython **/ -define(["notebook/js/widgets/widget"], function(WidgetManager){ +define(["widgets/js/widget"], function(WidgetManager){ var HTMLView = IPython.DOMWidgetView.extend({ render : function(){