Skip to content

Instantly share code, notes, and snippets.

@alvin2ye
Created August 12, 2009 03:02
Show Gist options
  • Save alvin2ye/166281 to your computer and use it in GitHub Desktop.
Save alvin2ye/166281 to your computer and use it in GitHub Desktop.
def append_tree_child(node)
javascript_tag <<-js
if(window.top.Agi) {
var tree = window.top.Agi.Eip.navTree;
tree.getSelectionModel().getSelectedNode().appendChild(#{node.to_ext_tree_node.to_json})
}
js
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment