From 4ca81ce722ae7023b1fd98101e9ba7e58067a3ab 2012-05-31 20:08:25 From: Brian Granger Date: 2012-05-31 20:08:25 Subject: [PATCH] Fixing bug in prompt_area handling of OutputArea. --- diff --git a/IPython/frontend/html/notebook/static/js/codecell.js b/IPython/frontend/html/notebook/static/js/codecell.js index 2f25dd3..8cdb13e 100644 --- a/IPython/frontend/html/notebook/static/js/codecell.js +++ b/IPython/frontend/html/notebook/static/js/codecell.js @@ -44,7 +44,7 @@ var IPython = (function (IPython) { var output = $('
'); cell.append(input).append(output); this.element = cell; - this.output_area = new IPython.OutputArea(output, false); + this.output_area = new IPython.OutputArea(output, true); // construct a completer only if class exist // otherwise no print view diff --git a/IPython/frontend/html/notebook/static/js/outputarea.js b/IPython/frontend/html/notebook/static/js/outputarea.js index 1968718..1859b5f 100644 --- a/IPython/frontend/html/notebook/static/js/outputarea.js +++ b/IPython/frontend/html/notebook/static/js/outputarea.js @@ -22,7 +22,9 @@ var IPython = (function (IPython) { this.clear_out_timeout = null; if (prompt_area === undefined) { this.prompt_area = true; - } + } else { + this.prompt_area = prompt_area; + }; this.style(); };