Merge pull request #72 from anka-213/master

Fixes #63, highlighting file names when renaming up to full stop
This commit is contained in:
James Allen 2014-05-14 15:50:13 +01:00
commit bf8fae176f

View file

@ -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)