From 2cf73980c0a9116c0c00adcc11cb38ffd7f36abc Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Sun, 1 Sep 2013 21:30:40 -0700 Subject: [PATCH] Select default title when renaming a notebook The default notebook name is Untitled. It is unlikely the user will want to keep this name or part of it. Instead, select the text in the input field so the user can easily type over the name and change it. --- IPython/html/static/notebook/js/savewidget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IPython/html/static/notebook/js/savewidget.js b/IPython/html/static/notebook/js/savewidget.js index 8e2a16cf3..6fee7802f 100644 --- a/IPython/html/static/notebook/js/savewidget.js +++ b/IPython/html/static/notebook/js/savewidget.js @@ -52,7 +52,7 @@ var IPython = (function (IPython) { $([IPython.events]).on('checkpoints_listed.Notebook', function (event, data) { that.set_last_checkpoint(data[0]); }); - + $([IPython.events]).on('checkpoint_created.Notebook', function (event, data) { that.set_last_checkpoint(data); }); @@ -104,7 +104,7 @@ var IPython = (function (IPython) { return false; } }); - that.find('input[type="text"]').focus(); + that.find('input[type="text"]').focus().select(); } }); }