Merge pull request #131 from hiaselhans/master

tree rename dialog - focus filename without extension
This commit is contained in:
Thomas Kluyver 2015-06-03 15:57:58 -07:00
commit 69094bfffc

View File

@ -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();
}
}
});
};