mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 06:09:02 +02:00
Fixes #63, highlighting file names when renaming up to full stop
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user