         show_only_matches: true
       themes:
         theme: 'classic'
-
+      ui:
+        select_limit: 1
+        initially_select: initially_select
       types:
         types:
           root:

      e.preventDefault()
      e.stopPropagation()
      tree.jstree('toggle_node', $(this).parent())

    treeGroup.on 'keypress keydown keyup blur', 'input.search', ->
      search = $(this)

    async: false
  }).responseText
  data = JSON.parse(data)


  initially_select = []
  if window.location.hash != ''
    id = window.location.hash.substr(1)
    initially_select.push(id)

  if tree.html() == ''
    tree.jstree
