       null
       # TODO: Do something on sort stop?
 
-  ko.bindingHandlers.sortable.afterMove = (options) ->
-    parent = options.sourceParentNode.attributes["data-id"].value
-    ntrapy.post "/roush/facts/",
-      JSON.stringify
-        key: "parent_id"
-        value: parent
-        node_id: options.item.id()
-    , (data) ->
-      null # TODO: Do something with success?
-    , (jqXHR) ->
-      console.log "Error: ", jqXHR
 
   ntrapy.indexModel = new IndexModel()
   ko.applyBindings ntrapy.indexModel

    @getMappedData = (url, pin, map={}, wrap=true) =>
      @getData url, (data) => @mapData(data, pin, map, wrap)

    # Parse a flat node list, injecting children arrays for traversal
    @parseNodes = (data, pin, keyed={}) ->
      root = {}


          $("#indexInputModal").modal "hide"
          console.log "Error (#{jqXHR.status}): errorThrown"

    ko.bindingHandlers.sortable.afterMove = (options) =>
      parent = options.sourceParentNode.attributes["data-id"].value
      ntrapy.post "/roush/facts/",
        JSON.stringify
          key: "parent_id"
          value: parent
          node_id: options.item.id()
      , (data) ->
        null # TODO: Do something with success?
      , (jqXHR) =>
        console.log "Error: ", jqXHR
        @updateNodes null, @wsTemp, @wsKeys # Remap from keys on fails

    @ # Return ourself

  popoverOptions =
