R30542 - /trunk/phpgwapi/inc/class.html.inc.php

Author: ralfbecker
New Revision: 30542

URL: http://www.egroupware.org/viewvc/egroupware?rev=30542&view=rev
Log:
allow to call html::tree(null,null) to get just the javascript, eg. to include it in header

Modified:
trunk/phpgwapi/inc/class.html.inc.php

Modified: trunk/phpgwapi/inc/class.html.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/phpgwapi/inc/class.html.inc.php?rev=30542&r1=30541&r2=30542&view=diff

— trunk/phpgwapi/inc/class.html.inc.php (original)
+++ trunk/phpgwapi/inc/class.html.inc.php Fri Jun 4 22:06:41 2010
@@ -1292,8 +1292,6 @@
$folderImageDir = $GLOBALS[‘egw_info’][‘server’][‘webserver_url’].’/phpgwapi/templates/default/images/’;
}

  •   $html = self::div("\n",'id="'.$tree.'"',$_divClass);
    
  •   static $tree_initialised=false;
      if (!$tree_initialised)
      {
    

@@ -1301,7 +1299,9 @@
$html .= “<script type=‘text/javascript’ src=’{$GLOBALS[‘egw_info’][‘server’][‘webserver_url’]}/phpgwapi/js/dhtmlxtree/js/dhtmlXCommon.js’>\n”;
$html .= “<script type=‘text/javascript’ src=’{$GLOBALS[‘egw_info’][‘server’][‘webserver_url’]}/phpgwapi/js/dhtmlxtree/js/dhtmlXTree.js’>\n”;
$tree_initialised = true;

  •   }
    
  •   	if (!$_folders) return $html;
    
  •   }
    
  •   $html = self::div("\n",'id="'.$tree.'"',$_divClass).$html;
      $html .= "<script type='text/javascript'>\n";
      $html .= "var $tree = new dhtmlXTreeObject('$tree','100%','100%',0);\n";
      $html .= "$tree.setImagePath('$folderImageDir/dhtmlxtree/');\n";
    

ThinkGeek and WIRED’s GeekDad team up for the Ultimate
GeekDad Father’s Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo


eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs