From 55e47dff81c87f96b35c8d685d2d165d062cc1f7 2013-08-19 21:47:18 From: Zachary Sailer Date: 2013-08-19 21:47:18 Subject: [PATCH] minor bug fix, define 'var' in dialog.js. The 'cell' variable isn't defined and causes and error in the console --- diff --git a/IPython/html/static/base/js/dialog.js b/IPython/html/static/base/js/dialog.js index 835992d..1d99bfe 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(); } });