Lines Matching defs:js_name

501         $js_name = "indexmenu_" . $js_dTreeOpts['identifier'];
516 $output_js .= $this->builddTree($nodes, $ns, $js_dTreeOpts, $js_name, $opts['max']);
519 $output_js .= $this->buildFancyTree($js_name, $ns, $opts, $sort);
526 $output .= $this->buildNoJSTree($nodes, $js_name, $js_dTreeOpts['jsAjax']);
531 private function buildNoJSTree($nodes, $js_name, $jsAjax)
538 . '<div id="nojs_' . $js_name . '" data-jsajax="' . utf8_encodeFN($jsAjax) . '" class="indexmenu_nojs">'
544 private function buildFancyTree($js_name, $ns, $opts, $sort)
565 return '<div id="tree2_' . $js_name . '" class="indexmenu_js2 skin-' . $opts['theme'] . '"'
575 * @param string $js_name identifier for this index
584 private function builddTree($nodes, $ns, $js_dTreeOpts, $js_name, $max)
611 $out .= "var $js_name = new dTree('" . $js_name . "','" . $js_dTreeOpts['theme'] . "');\n";
614 $out .= "$js_name.config.urlbase='" . substr(wl(":"), 0, -1) . "';\n";
615 $out .= "$js_name.config.sepchar='" . $sepchar . "';\n";
617 $out .= "$js_name.config.toc=false;\n";
620 $out .= "$js_name.config.useCookies=false;\n";
623 $out .= "$js_name.config.scroll=false;\n";
627 $out .= "$js_name.config.maxjs=" . $js_dTreeOpts['maxJs'] . ";\n";
630 $out .= "$js_name.config.jsajax='" . utf8_encodeFN($js_dTreeOpts['jsAjax']) . "';\n";
634 $out .= $js_name . ".add('" . idfilter(cleanID($ns), false) . "',0,-1," . json_encode($title);
640 [$nodesArray, $openNodes] = $this->builddTreeNodes($nodes, $js_name);
643 $out .= "document.write(" . $js_name . ");\n";
645 $out .= "jQuery(function(){" . $js_name . ".init(";
665 * @param string $js_name identifier for this index
676 public function builddTreeNodes($nodes, $js_name, $noajax = true)
688 $jscmd = $js_name . ".add";