From ec47775d5044b4f62dbc792049fecac24ed604bc Mon Sep 17 00:00:00 2001 From: Nathan Daly Date: Mon, 18 Jan 2016 23:17:16 -0800 Subject: [PATCH] Removed code unnecessary for Move to select the file name up to a period. The Move button expects a file path, which shouldn't include a file extension suffix. --- notebook/static/tree/js/notebooklist.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/notebook/static/tree/js/notebooklist.js b/notebook/static/tree/js/notebooklist.js index 8f280634d..91e9ecdec 100644 --- a/notebook/static/tree/js/notebooklist.js +++ b/notebook/static/tree/js/notebooklist.js @@ -843,11 +843,8 @@ define([ } }); input.focus(); - if (input.val().indexOf(".") > 0) { - input[0].setSelectionRange(0,input.val().indexOf(".")); - } else { - input.select(); - } + // Highlight the current path in the input box. + input.select(); } }); };