Skip to content

Commit

Permalink
Merge pull request #131 from hiaselhans/master
Browse files Browse the repository at this point in the history
 tree rename dialog - focus filename without extension
  • Loading branch information
takluyver committed Jun 3, 2015
2 parents 5c18ecb + 23cc03e commit 69094bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion notebook/static/tree/js/notebooklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,12 @@ define([
return false;
}
});
input.focus().select();
input.focus();
if (input.val().indexOf(".") > 0) {
input[0].setSelectionRange(0,input.val().indexOf("."));
} else {
input.select();
}
}
});
};
Expand Down

0 comments on commit 69094bf

Please sign in to comment.