From a16211ceffca0d9607159e4a016adf1afbc4591d Mon Sep 17 00:00:00 2001 From: Zachary Sailer Date: Mon, 19 Aug 2013 14:47:18 -0700 Subject: [PATCH] minor bug fix, define 'var' in dialog.js. The 'cell' variable isn't defined and causes and error in the console --- IPython/html/static/base/js/dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/html/static/base/js/dialog.js b/IPython/html/static/base/js/dialog.js index 835992df0..1d99bfe44 100644 --- a/IPython/html/static/base/js/dialog.js +++ b/IPython/html/static/base/js/dialog.js @@ -68,7 +68,7 @@ IPython.dialog = (function (IPython) { if (options.reselect_cell !== false) { dialog.on("hidden", function () { if (IPython.notebook) { - cell = IPython.notebook.get_selected_cell(); + var cell = IPython.notebook.get_selected_cell(); if (cell) cell.select(); } });