diff --git a/IPython/frontend/html/notebook/static/css/notebook.css b/IPython/frontend/html/notebook/static/css/notebook.css index 4dd1761..1af0df1 100644 --- a/IPython/frontend/html/notebook/static/css/notebook.css +++ b/IPython/frontend/html/notebook/static/css/notebook.css @@ -342,4 +342,4 @@ div.text_cell_render { } .shortcut_descr { -} \ No newline at end of file +} diff --git a/IPython/frontend/html/notebook/static/js/codecell.js b/IPython/frontend/html/notebook/static/js/codecell.js index 279bad6..83ebd37 100644 --- a/IPython/frontend/html/notebook/static/js/codecell.js +++ b/IPython/frontend/html/notebook/static/js/codecell.js @@ -88,11 +88,11 @@ var IPython = (function (IPython) { return false; }; } else if (event.keyCode === 76 && event.ctrlKey && event.shiftKey - && event.type == 'keydown') { + && event.type == 'keydown') { // toggle line numbers with Ctrl-Shift-L - this.toggle_line_numbers() + this.toggle_line_numbers(); } - else { + else { // keypress/keyup also trigger on TAB press, and we don't want to // use those to disable tab completion. if (this.is_completing && event.keyCode !== 9) { @@ -184,12 +184,12 @@ var IPython = (function (IPython) { }; CodeCell.prototype.toggle_line_numbers = function () { - if (this.code_mirror.getOption('lineNumbers') == false) { - this.code_mirror.setOption('lineNumbers', true); - } else { - this.code_mirror.setOption('lineNumbers', false); - } - this.code_mirror.refresh() + if (this.code_mirror.getOption('lineNumbers') == false) { + this.code_mirror.setOption('lineNumbers', true); + } else { + this.code_mirror.setOption('lineNumbers', false); + } + this.code_mirror.refresh() }; CodeCell.prototype.select = function () { diff --git a/IPython/frontend/html/notebook/static/js/header.js b/IPython/frontend/html/notebook/static/js/header.js index 0f80ea9..a808af8 100644 --- a/IPython/frontend/html/notebook/static/js/header.js +++ b/IPython/frontend/html/notebook/static/js/header.js @@ -16,14 +16,14 @@ var IPython = (function (IPython) { if (this.selector !== undefined) { this.element = $(selector); this.content = this.element.find('div.header'); - this.style(); + this.style(); this.bind_events(); } }; HeaderSection.prototype.style = function () { - this.content.addClass('ui-helper-clearfix'); - this.content.find('#quick_help').button(); + this.content.addClass('ui-helper-clearfix'); + this.content.find('#quick_help').button(); }; HeaderSection.prototype.bind_events = function () { diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js index 7af23d3..d45bc17 100644 --- a/IPython/frontend/html/notebook/static/js/notebook.js +++ b/IPython/frontend/html/notebook/static/js/notebook.js @@ -147,7 +147,7 @@ var IPython = (function (IPython) { return false; } else if (event.which === 190 && that.control_key_active) { // Restart kernel = . # matches qt console - IPython.notebook.restart_kernel(); + IPython.notebook.restart_kernel(); that.control_key_active = false; return false; } else if (that.control_key_active) { @@ -213,8 +213,8 @@ var IPython = (function (IPython) { {key: 'Ctrl-m m', help: 'markdown cell'}, {key: 'Ctrl-m p', help: 'select previous'}, {key: 'Ctrl-m n', help: 'select next'}, - {key: 'Ctrl-m i', help: 'interrupt kernel'}, - {key: 'Ctrl-m .', help: 'restart kernel'}, + {key: 'Ctrl-m i', help: 'interrupt kernel'}, + {key: 'Ctrl-m .', help: 'restart kernel'}, {key: 'Ctrl-m h', help: 'show keyboard shortcuts'} ]; for (var i=0; i'); @@ -648,7 +648,7 @@ var IPython = (function (IPython) { title: "Restart kernel or continue running?", buttons : { "Restart": function () { - that.kernel.restart($.proxy(that.kernel_started, that)); + that.kernel.restart($.proxy(that.kernel_started, that)); $(this).dialog('close'); }, "Continue running": function () { diff --git a/IPython/frontend/html/notebook/templates/notebook.html b/IPython/frontend/html/notebook/templates/notebook.html index 1e79cc1..ffb32c6 100644 --- a/IPython/frontend/html/notebook/templates/notebook.html +++ b/IPython/frontend/html/notebook/templates/notebook.html @@ -65,7 +65,7 @@