[Fusionforge-commits] r13521 - trunk/src/www/themes/funky

Franck VILLAUME nerville at fusionforge.org
Fri Jun 17 15:16:21 CEST 2011


Author: nerville
Date: 2011-06-17 15:16:20 +0200 (Fri, 17 Jun 2011)
New Revision: 13521

Modified:
   trunk/src/www/themes/funky/Theme.class.php
Log:
remove use of html_use_jquery... because not working

Modified: trunk/src/www/themes/funky/Theme.class.php
===================================================================
--- trunk/src/www/themes/funky/Theme.class.php	2011-06-17 13:15:03 UTC (rev 13520)
+++ trunk/src/www/themes/funky/Theme.class.php	2011-06-17 13:16:20 UTC (rev 13521)
@@ -221,6 +221,16 @@
 			$use_tooltips = $u->usesTooltips();
 		}
 
+		if ($use_tooltips) {
+			?>
+			<script language="JavaScript" type="text/javascript">/* <![CDATA[ */
+				if (typeof(jQuery(window).tipsy) == 'function') {
+					jQuery(document).ready(function() {jQuery('.tabtitle').tipsy()});
+				}
+			/* ]]> */</script>
+			<?
+		}
+
 		$return = '<!-- start tabs -->';
 		$return .= '<table class="tabGenerator width-100p100" summary="" ';
 
@@ -239,12 +249,13 @@
 			$return .= "\n";
 
 			// middle part
-			$return .= '<td class="tg-middle" style="width:'.$tabwidth.'%;"><a href="'.$TABS_DIRS[$i].'">' . "\n";
+			$return .= '<td class="tg-middle" style="width:'.$tabwidth.'%;"><a ';
+			$return .= 'id="'.md5($TABS_DIRS[$i]).'" ';
+			if ($use_tooltips)
+				$return .= 'class="tabtitle" title="'.$TABS_TOOLTIPS[$i].'"';
+			$return .= 'href="'.$TABS_DIRS[$i].'">' . "\n";
 			$return .= '<span';
 
-			if ($use_tooltips)
-				$return .= ' title="'.$TABS_TOOLTIPS[$i].'"';
-
 			if ($selected == $i)
 				$return .= ' class="selected"';
 
@@ -259,7 +270,7 @@
 			$return .= '</span>';
 			$return .= '</span>' . "\n";
 			$return .= '</a></td>' . "\n";
-		
+
 		}
 
 		$return .= '</tr></table><!-- end tabs -->';
@@ -377,8 +388,6 @@
 	 */
 	function headerJS()
 	{
-		html_use_jquery();
-
 		echo '<script type="text/javascript" src="'. util_make_uri('/js/common.js') .'"></script>';
 		echo '<script type="text/javascript" src="/scripts/codendi/LayoutManager.js"></script>';
 		echo '<script type="text/javascript" src="/scripts/codendi/ReorderColumns.js"></script>';
@@ -386,9 +395,9 @@
 		echo '<script type="text/javascript" src="/scripts/codendi/validate.js"></script>';
 		echo '<script type="text/javascript" src="/scripts/codendi/Tooltip.js"></script>';
 
-		plugin_hook("javascript_file",false);
+		plugin_hook("javascript_file", false);
 		echo $this->getJavascripts();
-		
+
 		// invoke the 'javascript' hook for custom javascript addition
 		$params = array('return' => false);
 		plugin_hook("javascript", $params);
@@ -398,6 +407,10 @@
 			echo $javascript;
 			echo "\n/* ]]> */</script>\n";
 		}
+		echo '<script type="text/javascript" src="/scripts/jquery/jquery-1.4.2.min.js"></script>';
+		echo '<script type="text/javascript" src="/scripts/jquery-tipsy/src/javascripts/jquery.tipsy.js"></script>';
+		echo '<script type="text/javascript" src="/js/tooltips.js"></script>';
+		echo '<link rel="stylesheet" href="/scripts/jquery-tipsy/src/stylesheets/tipsy.css" type="text/css">';
 		?>
 		<script language="JavaScript" type="text/javascript">/* <![CDATA[ */
 		jQuery.noConflict();




More information about the Fusionforge-commits mailing list