       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

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