diff --git a/IPython/html/static/notebook/js/widgets/bool.js b/IPython/html/static/notebook/js/widgets/bool.js
index 3a3acef7a..54c6c0f72 100644
--- a/IPython/html/static/notebook/js/widgets/bool.js
+++ b/IPython/html/static/notebook/js/widgets/bool.js
@@ -54,7 +54,7 @@ define(["notebook/js/widget"], function(widget_manager){
this.$checkbox.prop('disabled', disabled);
var description = this.model.get('description');
- if (description.length == 0) {
+ if (description.length === 0) {
this.$label.hide();
} else {
this.$label.html(description);
@@ -98,7 +98,7 @@ define(["notebook/js/widget"], function(widget_manager){
this.$button.prop('disabled', disabled);
var description = this.model.get('description');
- if (description.length == 0) {
+ if (description.length === 0) {
this.$button.html(' '); // Preserve button height
} else {
this.$button.html(description);
diff --git a/IPython/html/static/notebook/js/widgets/button.js b/IPython/html/static/notebook/js/widgets/button.js
index e8bb0045c..cb3c4ae1d 100644
--- a/IPython/html/static/notebook/js/widgets/button.js
+++ b/IPython/html/static/notebook/js/widgets/button.js
@@ -36,7 +36,7 @@ define(["notebook/js/widget"], function(widget_manager){
var description = this.model.get('description');
description = description.replace(/ /g, ' ', 'm');
description = description.replace(/\n/g, '
\n', 'm');
- if (description.length == 0) {
+ if (description.length === 0) {
this.$el.html(' '); // Preserve button height
} else {
this.$el.html(description);
diff --git a/IPython/html/static/notebook/js/widgets/container.js b/IPython/html/static/notebook/js/widgets/container.js
index 458c7dd7a..de41f37cc 100644
--- a/IPython/html/static/notebook/js/widgets/container.js
+++ b/IPython/html/static/notebook/js/widgets/container.js
@@ -87,7 +87,7 @@ define(["notebook/js/widget"], function(widget_manager) {
.appendTo(this.$window)
.mousedown(function(){
that.bring_to_front();
- });;
+ });
this.$close = $('')
.addClass('close icon-remove')
.css('margin-left', '5px')
@@ -156,7 +156,7 @@ define(["notebook/js/widget"], function(widget_manager) {
this.$window.resizable();
this.$window.on('resize', function(){
that.$body.outerHeight(that.$window.innerHeight() - that.$title_bar.outerHeight());
- })
+ });
this.$el_to_style = this.$body;
this._shown_once = false;
@@ -173,7 +173,7 @@ define(["notebook/js/widget"], function(widget_manager) {
this.$window.show();
if (this.popped_out) {
- this.$window.css("positon", "absolute")
+ this.$window.css("positon", "absolute");
this.$window.css("top", "0px");
this.$window.css("left", Math.max(0, (($('body').outerWidth() - this.$window.outerWidth()) / 2) +
$(window).scrollLeft()) + "px");
@@ -192,7 +192,7 @@ define(["notebook/js/widget"], function(widget_manager) {
max_zindex = Math.max(max_zindex, 2000);
$widget_modals.each(function (index, el){
- $el = $(el)
+ $el = $(el);
if (max_zindex == parseInt($el.css('z-index'))) {
$el.css('z-index', max_zindex - 1);
}
@@ -206,7 +206,7 @@ define(["notebook/js/widget"], function(widget_manager) {
var description = this.model.get('description');
description = description.replace(/ /g, ' ', 'm');
description = description.replace(/\n/g, '
\n', 'm');
- if (description.length == 0) {
+ if (description.length === 0) {
this.$title.html(' '); // Preserve title height
} else {
this.$title.html(description);
@@ -215,7 +215,7 @@ define(["notebook/js/widget"], function(widget_manager) {
var button_text = this.model.get('button_text');
button_text = button_text.replace(/ /g, ' ', 'm');
button_text = button_text.replace(/\n/g, '
\n', 'm');
- if (button_text.length == 0) {
+ if (button_text.length === 0) {
this.$show_button.html(' '); // Preserve button height
} else {
this.$show_button.html(button_text);
diff --git a/IPython/html/static/notebook/js/widgets/multicontainer.js b/IPython/html/static/notebook/js/widgets/multicontainer.js
index b69dd6a29..a70f54ebe 100644
--- a/IPython/html/static/notebook/js/widgets/multicontainer.js
+++ b/IPython/html/static/notebook/js/widgets/multicontainer.js
@@ -33,8 +33,8 @@ define(["notebook/js/widget"], function(widget_manager){
var titles = this.model.get('_titles');
for (var page_index in titles) {
- var accordian = this.containers[page_index]
- if (accordian != undefined) {
+ var accordian = this.containers[page_index];
+ if (accordian !== undefined) {
accordian
.find('.accordion-heading')
.find('.accordion-toggle')
@@ -95,7 +95,7 @@ define(["notebook/js/widget"], function(widget_manager){
// open by default even though they don't have the `in` class
// attached to them. For some reason a delay is required.
// TODO: Better fix.
- setTimeout(function(){that.update()}, 500);
+ setTimeout(function(){ that.update(); }, 500);
},
});
@@ -121,8 +121,8 @@ define(["notebook/js/widget"], function(widget_manager){
// Set tab titles
var titles = this.model.get('_titles');
for (var page_index in titles) {
- var tab_text = this.containers[page_index]
- if (tab_text != undefined) {
+ var tab_text = this.containers[page_index];
+ if (tab_text !== undefined) {
tab_text.html(titles[page_index]);
}
}
@@ -162,7 +162,7 @@ define(["notebook/js/widget"], function(widget_manager){
.append(view.$el)
.appendTo(this.$tab_contents);
- if (index==0) {
+ if (index === 0) {
tab_text.tab('show');
}
this.update();
diff --git a/IPython/html/static/notebook/js/widgets/selection.js b/IPython/html/static/notebook/js/widgets/selection.js
index 61c328faa..3ce9f38b4 100644
--- a/IPython/html/static/notebook/js/widgets/selection.js
+++ b/IPython/html/static/notebook/js/widgets/selection.js
@@ -62,7 +62,7 @@ define(["notebook/js/widget"], function(widget_manager){
var selected_item_text = this.model.get('value');
selected_item_text = selected_item_text.replace(/ /g, ' ');
selected_item_text = selected_item_text.replace(/\n/g, '
\n');
- if (selected_item_text.length == 0) {
+ if (selected_item_text.length === 0) {
this.$droplabel.html(' ');
} else {
this.$droplabel.html(selected_item_text);
@@ -74,12 +74,8 @@ define(["notebook/js/widget"], function(widget_manager){
var that = this;
var item_button = $('')
.html(items[index])
- .on('click', function(e){
- that.model.set('value', $(e.target).html(), this);
- that.model.update_other_views(that);
- })
-
- this.$droplist.append($('