mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #72 from anka-213/master
Fixes #63, highlighting file names when renaming up to full stop
This commit is contained in:
commit
bf8fae176f
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ define [
|
|||
name = @model.get("name")
|
||||
@$inputEl.val(name).focus()
|
||||
if @$inputEl[0].setSelectionRange?
|
||||
selectionEnd = name.indexOf(".")
|
||||
selectionEnd = name.lastIndexOf(".")
|
||||
if selectionEnd == -1
|
||||
selectionEnd = name.length
|
||||
@$inputEl[0].setSelectionRange(0, selectionEnd)
|
||||
|
|
Loading…
Reference in a new issue