mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
add bootstrap shim for require
it was possible for bootstrap js to load before jquery, causing failures in the dashboard.
This commit is contained in:
parent
f3e599e0c4
commit
d345546d15
@ -6,7 +6,7 @@ define([
|
||||
'jquery',
|
||||
'base/js/utils',
|
||||
'notebook/js/tour',
|
||||
'components/bootstrap/js/bootstrap.min',
|
||||
'bootstrap',
|
||||
], function(IPython, $, utils, tour) {
|
||||
"use strict";
|
||||
|
||||
|
@ -12,8 +12,8 @@ require([
|
||||
'tree/js/sessionlist',
|
||||
'tree/js/kernellist',
|
||||
'auth/js/loginwidget',
|
||||
'components/jquery-ui/ui/minified/jquery-ui.min',
|
||||
'components/bootstrap/js/bootstrap.min',
|
||||
'jqueryui',
|
||||
'bootstrap',
|
||||
], function(
|
||||
IPython,
|
||||
$,
|
||||
|
@ -4,7 +4,7 @@
|
||||
define([
|
||||
"widgets/js/widget",
|
||||
"jquery",
|
||||
"components/bootstrap/js/bootstrap.min",
|
||||
"bootstrap",
|
||||
], function(widget, $){
|
||||
|
||||
var CheckboxView = widget.DOMWidgetView.extend({
|
||||
|
@ -4,7 +4,7 @@
|
||||
define([
|
||||
"widgets/js/widget",
|
||||
"jquery",
|
||||
"components/bootstrap/js/bootstrap.min",
|
||||
"bootstrap",
|
||||
], function(widget, $){
|
||||
|
||||
var ButtonView = widget.DOMWidgetView.extend({
|
||||
|
@ -4,7 +4,7 @@
|
||||
define([
|
||||
"widgets/js/widget",
|
||||
"jqueryui",
|
||||
"components/bootstrap/js/bootstrap.min",
|
||||
"bootstrap",
|
||||
], function(widget, $){
|
||||
|
||||
var ContainerView = widget.DOMWidgetView.extend({
|
||||
|
@ -4,7 +4,7 @@
|
||||
define([
|
||||
"widgets/js/widget",
|
||||
"jqueryui",
|
||||
"components/bootstrap/js/bootstrap.min",
|
||||
"bootstrap",
|
||||
], function(widget, $){
|
||||
|
||||
var IntSliderView = widget.DOMWidgetView.extend({
|
||||
|
@ -5,7 +5,7 @@ define([
|
||||
"widgets/js/widget",
|
||||
"base/js/utils",
|
||||
"jquery",
|
||||
"components/bootstrap/js/bootstrap.min",
|
||||
"bootstrap",
|
||||
], function(widget, utils, $){
|
||||
|
||||
var DropdownView = widget.DOMWidgetView.extend({
|
||||
|
@ -5,7 +5,7 @@ define([
|
||||
"widgets/js/widget",
|
||||
"base/js/utils",
|
||||
"jquery",
|
||||
"components/bootstrap/js/bootstrap.min",
|
||||
"bootstrap",
|
||||
], function(widget, utils, $){
|
||||
|
||||
var AccordionView = widget.DOMWidgetView.extend({
|
||||
|
@ -4,7 +4,7 @@
|
||||
define([
|
||||
"widgets/js/widget",
|
||||
"jquery",
|
||||
"components/bootstrap/js/bootstrap.min",
|
||||
"bootstrap",
|
||||
], function(widget, $){
|
||||
|
||||
var HTMLView = widget.DOMWidgetView.extend({
|
||||
|
@ -23,6 +23,7 @@
|
||||
underscore : 'components/underscore/underscore-min',
|
||||
backbone : 'components/backbone/backbone-min',
|
||||
jquery: 'components/jquery/jquery.min',
|
||||
bootstrap: 'components/bootstrap/js/bootstrap.min',
|
||||
bootstraptour: 'components/bootstrap-tour/build/js/bootstrap-tour.min',
|
||||
dateformat: 'dateformat/date.format',
|
||||
jqueryui: 'components/jquery-ui/ui/minified/jquery-ui.min',
|
||||
@ -35,7 +36,12 @@
|
||||
deps: ["underscore", "jquery"],
|
||||
exports: "Backbone"
|
||||
},
|
||||
bootstrap: {
|
||||
deps: ["jquery"],
|
||||
exports: "bootstrap"
|
||||
},
|
||||
bootstraptour: {
|
||||
deps: ["bootstrap"],
|
||||
exports: "Tour"
|
||||
},
|
||||
dateformat: {
|
||||
|
Loading…
Reference in New Issue
Block a user