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

        $.extend options.additional_params, files
      .success (d) ->
        window.available_undos.unshift d
        load_file_list first.closest('ul.column')
      .error ->
        update_footer options.error_msg_no

  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 '/'

