mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
Merge pull request #131 from hiaselhans/master
tree rename dialog - focus filename without extension
This commit is contained in:
commit
69094bfffc
@ -663,7 +663,12 @@ define([
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
input.focus().select();
|
input.focus();
|
||||||
|
if (input.val().indexOf(".") > 0) {
|
||||||
|
input[0].setSelectionRange(0,input.val().indexOf("."));
|
||||||
|
} else {
|
||||||
|
input.select();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user