       e.preventDefault()
       e.stopPropagation()
       hide_context_menu()
-      $(this).nextAll('li').remove()
     .selectable
       filter: 'li'
       selecting: (event, ui) ->

        # pressing command or ctrl key to select multiple items
        if event.metaKey == false and event.ctrlKey == false
          $(this).find('a.file').removeClass('active')
      stop: (event, ui) ->
        column = $(this)
        selected = column.find('.ui-selectee.ui-selected')

  update_current_path_and_title = (path) ->
    window.current_path = path
    if path == '' then path = '/'
    text = 'FileManager - ' + path
    $('#title').attr('title', text).text(text)

  update_current_path_and_title '/'

