From 9ee6cb827c5bbf2b9edc725eb42c8bb752a96afc 2015-03-27 22:49:56 From: RickWinter Date: 2015-03-27 22:49:56 Subject: [PATCH] Fixes bug that would show "null" as a message in the don't leave dialog --- diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index 5f572ad..3e40ceb 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -301,9 +301,8 @@ define(function (require) { return "Unsaved changes will be lost."; } } - // Null is the *only* return value that will make the browser not - // pop up the "don't leave" dialog. - return null; + // IE treats null as a string. Instead just return which will avoid the dialog. + return; }; };