Merge branch 'nak-nostream' into nak-powered-search

This commit is contained in:
Garen Torikian
2013-03-31 00:45:14 -07:00
42 changed files with 170 additions and 73 deletions

View File

@@ -11,7 +11,7 @@ class DirectoryView extends View
@div outlet: 'header', class: 'header', =>
@span class: 'disclosure-arrow', outlet: 'disclosureArrow'
@span directory.getBaseName(), class: 'name', outlet: 'directoryName'
@span "", class: 'highlight'
@span class: 'highlight'
directory: null
entries: null

View File

@@ -9,7 +9,7 @@ class FileView extends View
@content: ({file} = {}) ->
@li class: 'file entry', =>
@span file.getBaseName(), class: 'name', outlet: 'fileName'
@span '', class: 'highlight'
@span class: 'highlight'
file: null

View File

@@ -56,6 +56,7 @@ class TreeView extends ScrollView
afterAttach: (onDom) ->
@focus() if @focusAfterAttach
@scrollTop(@scrollTopAfterAttach) if @scrollTopAfterAttach > 0
@find('.selected > .highlight').width(@treeViewList[0].scrollWidth)
serialize: ->
directoryExpansionStates: @root?.serializeEntryExpansionStates()
@@ -304,10 +305,11 @@ class TreeView extends ScrollView
entry = entry.view() unless entry instanceof View
@selectedPath = entry.getPath()
@deselect()
entry.children('.highlight').width(@treeViewList[0].scrollWidth)
entry.addClass('selected')
deselect: ->
@treeViewList.find('.selected').removeClass('selected')
@treeViewList.find('.selected').removeClass('selected').children('.highlight').width('')
scrollTop: (top) ->
if top