You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
806 B

<%@ Control Language="VB" CodeFile="vb_Tree_UserControl.ascx.vb" Inherits="vb_Tree_UserControl"%>
<script type="text/javascript">
// function used for adding a node - it is triggered when the users clicks on the Add button
function addNode()
{
if(typeof tree_selected_id != "undefined" && document.getElementById("sNewNodeId").value && document.getElementById("sNewNodeText").value)
{
// if a node was selected (this will be the parent of the newly created node)
// and if the id and text of the node were entered, then the node will be created
ob_t2_Add(tree_selected_id, document.getElementById("sNewNodeId").value, document.getElementById("sNewNodeText").value, null, "folder.gif", null);
}
else
{
// if no node was selected, an error message will be displayed