options.js
// recursively fills array with ids and titles of folders in the bookmark tree
recursively fills array with ids and titles of folders in the bookmark tree
recursively fills array with ids and titles of folders in the bookmark tree
function GetBookmarkNodes(node, arr, depth)
{ 
    for(var i = 0; i < node.children.length; i++)
    {       
        if(node.children[i].url == null)
        {  
            var detail = new Array(2);
            detail[0] = node.children[i].id;
            detail[1] = depth + node.children[i].title;
            arr.push(detail);
            GetBookmarkNodes(node.children[i], arr, depth + "&nbsp;&nbsp;&nbsp;");            
        }       
    }
}
function GetBookmarkNodes ( node , arr , depth ) { for ( var i = 0 ; i < node . children . length ; i ++ ) { if ( node . children [ i ] . url == null ) { var detail = new Array ( 2 ) ; detail [ 0 ] = node . children [ i ] . id ; detail [ 1 ] = depth + node . children [ i ] . title ; arr . push ( detail ) ; GetBookmarkNodes ( node . children [ i ] , arr , depth + "&nbsp;&nbsp;&nbsp;" ) ; } } }
recursively fills array with ids and titles of folders in the bookmark tree
recursively fills array with ids and titles of folders in the bookmark tree