Merge pull request #4161 from kevinburke/select

Select name when renaming a notebook
This commit is contained in:
Min RK 2013-09-03 15:29:28 -07:00
commit e992e6b7e2

View File

@ -52,7 +52,7 @@ var IPython = (function (IPython) {
$([IPython.events]).on('checkpoints_listed.Notebook', function (event, data) { $([IPython.events]).on('checkpoints_listed.Notebook', function (event, data) {
that.set_last_checkpoint(data[0]); that.set_last_checkpoint(data[0]);
}); });
$([IPython.events]).on('checkpoint_created.Notebook', function (event, data) { $([IPython.events]).on('checkpoint_created.Notebook', function (event, data) {
that.set_last_checkpoint(data); that.set_last_checkpoint(data);
}); });
@ -104,7 +104,7 @@ var IPython = (function (IPython) {
return false; return false;
} }
}); });
that.find('input[type="text"]').focus(); that.find('input[type="text"]').focus().select();
} }
}); });
} }