[Fusionforge-commits] r13574 - in trunk/src: common/docman/views common/include www/docman www/docman/scripts www/include www/softwaremap www/themes/funky

Franck VILLAUME nerville at fusionforge.org
Fri Jun 24 15:14:23 CEST 2011


Author: nerville
Date: 2011-06-24 15:14:23 +0200 (Fri, 24 Jun 2011)
New Revision: 13574

Modified:
   trunk/src/common/docman/views/additem.php
   trunk/src/common/docman/views/listfile.php
   trunk/src/common/docman/views/listtrashfile.php
   trunk/src/common/docman/views/menu.php
   trunk/src/common/docman/views/pendingfiles.php
   trunk/src/common/include/utils.php
   trunk/src/www/docman/index.php
   trunk/src/www/docman/scripts/DocManController.js
   trunk/src/www/include/Layout.class.php
   trunk/src/www/include/html.php
   trunk/src/www/softwaremap/trove_list.php
   trunk/src/www/themes/funky/Theme.class.php
Log:
reimplement use of tooltips and extend it in some pages

Modified: trunk/src/common/docman/views/additem.php
===================================================================
--- trunk/src/common/docman/views/additem.php	2011-06-24 11:59:45 UTC (rev 13573)
+++ trunk/src/common/docman/views/additem.php	2011-06-24 13:14:23 UTC (rev 13574)
@@ -25,8 +25,8 @@
 /* global variables used */
 global $group_id; // id of the group
 global $dirid; //id of the doc_group
-global $use_tooltips; // enable or not tooltips in docman
 
+
 if (!forge_check_perm('docman', $group_id, 'submit')) {
 	$return_msg= _('Document Manager Access Denied');
 	session_redirect('/docman/?group_id='.$group_id.'&warning_msg='.urlencode($return_msg));
@@ -38,13 +38,6 @@
 
 jQuery(document).ready(function() {
 	controllerAddItem = new DocManAddItemController({
-
-		tipsyElements:	[
-					{selector: '#labelDoc', options:{gravity: 'nw', delayIn: 500, delayOut: 0, fade: true}},
-					{selector: '#labelDir', options:{gravity: 'nw', delayIn: 500, delayOut: 0, fade: true}},
-					{selector: '#labelZip', options:{gravity: 'w', delayIn: 500, delayOut: 0, fade: true}}
-				],
-
 		divCreateDir:	jQuery('#addsubdocgroup'),
 		divCreateDoc:	jQuery('#addfile'),
 		divZipInject:	jQuery('#zipinject'),
@@ -63,19 +56,13 @@
 </script>
 <?php
 echo '<div class="docmanDivIncluded" >';
-echo '<input id="buttonDoc" type="radio" name="type" value="document" /><label ';
-if ($use_tooltips)
-	echo 'id="labelDoc" title="'. _('Submit a new document in this directory.').'"';
-echo '>'. _('Submit a new document.') .'</label>';
+echo '<input id="buttonDoc" type="radio" name="type" value="document" />';
+echo '<label id="labelDoc" class="tabtitle-nw" title="'. _('Submit a new document in this directory.').'" >'. _('Submit a new document.') .'</label>';
 if (forge_check_perm('docman', $group_id, 'approve')) {
-	echo '<input id="buttonDir" type="radio" name="type" value="directory" /><label ';
-	if ($use_tooltips)
-		echo 'id="labelDir" title="'. _('Create a directory based on this name.').'"';
-	echo '>'. _('Add a new directory.') .'</label>';
-	echo '<input id="buttonZip" type="radio" name="type" value="zip" /><label ';
-	if ($use_tooltips)
-		echo 'id="labelZip" title="'. _('Create a full directory tree using an compressed archive. Only zip or rar format support.').'"';
-	echo '>'. _('Inject Tree') . '</label>';
+	echo '<input id="buttonDir" type="radio" name="type" value="directory" />';
+	echo '<labelid="labelDir" class="tabtitle-nw" title="'. _('Create a directory based on this name.').'" >'. _('Add a new directory.') .'</label>';
+	echo '<input id="buttonZip" type="radio" name="type" value="zip" />';
+	echo '<label id="labelZip" class="tabtitle-w" title="'. _('Create a full directory tree using an compressed archive. Only zip or rar format support.').'" >'. _('Inject Tree') . '</label>';
 }
 if (forge_check_perm('docman', $group_id, 'approve')) {
 	echo '<div class="docman_div_include" id="addsubdocgroup" style="display:none;">';

Modified: trunk/src/common/docman/views/listfile.php
===================================================================
--- trunk/src/common/docman/views/listfile.php	2011-06-24 11:59:45 UTC (rev 13573)
+++ trunk/src/common/docman/views/listfile.php	2011-06-24 13:14:23 UTC (rev 13574)
@@ -32,7 +32,6 @@
 global $dgf; // document group factory
 global $HTML; // Layout object
 global $u; // User object
-global $use_tooltips; // enable or not tooltips in docman
 global $g; // the Group object
 
 if (!forge_check_perm('docman', $group_id, 'read')) {
@@ -94,22 +93,6 @@
 jQuery(document).ready(function() {
 	controllerListFile = new DocManListFileController({
 		groupId:		<?php echo $group_id ?>,
-		tipsyElements:		[
-						{selector: '#docman-additem', options:{delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '#docman-editdirectory', options:{delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '#docman-deletedirectory', options:{delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '#docman-trashdirectory', options:{delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '#docman-massactionmessage', options:{gravity: 'nw', delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '.docman-downloadaszip', options:{delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '.docman-viewfile', options:{gravity: 'nw', delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '.docman-reserveddocument', options:{delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '.docman-movetotrash', options:{gravity: 'ne', delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '.docman-editfile', options:{gravity: 'ne', delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '.docman-releasereservation', options:{gravity: 'ne',delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '.docman-reservefile', options:{gravity: 'ne', delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '.docman-monitorfile', options:{gravity: 'ne', delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '.docman-newdocument', options:{gravity: 'ne', delayIn: 500, delayOut: 0, fade: true}}
-					],
 		divAddItem:		jQuery('#additem'),
 		divEditDirectory:	jQuery('#editdocgroup'),
 		buttonAddItem:		jQuery('#docman-additem'),
@@ -133,38 +116,19 @@
 if ($DocGroupName) {
 	echo '<h3 class="docman_h3" >Directory : <i>'.$DocGroupName.'</i> ';
 	if (forge_check_perm('docman', $group_id, 'approve')) {
-		echo '<a href="#" id="docman-editdirectory" ';
-		if ($use_tooltips)
-			echo 'title="'._('Edit this directory').'"';
-
-		echo ' >'. html_image('docman/configure-directory.png',22,22,array('alt'=>'edit')). '</a>';
-		echo '<a href="?group_id='.$group_id.'&action=trashdir&dirid='.$dirid.'" id="docman-trashdirectory" ';
-		if ($use_tooltips)
-			echo 'title="'._('Move this directory and his content to trash').'" ';
-		echo '>'. html_image('docman/trash-empty.png',22,22,array('alt'=>'trashdir')). '</a>';
+		echo '<a href="#" class="tabtitle" id="docman-editdirectory" title="'._('Edit this directory').'" >'. html_image('docman/configure-directory.png',22,22,array('alt'=>'edit')). '</a>';
+		echo '<a href="?group_id='.$group_id.'&action=trashdir&dirid='.$dirid.'" class="tabtitle" id="docman-trashdirectory" title="'._('Move this directory and his content to trash').'" >'. html_image('docman/trash-empty.png',22,22,array('alt'=>'trashdir')). '</a>';
 		if (!isset($nested_docs[$dirid]) && !isset($nested_groups[$dirid]) && !isset($nested_pending_docs[$dirid])) {
-			echo '<a href="?group_id='.$group_id.'&action=deldir&dirid='.$dirid.'" id="docman-deletedirectory" ';
-			if ($use_tooltips)
-				echo ' title="'._('Permanently delete this directory').'" ';
-
-			echo '>'. html_image('docman/delete-directory.png',22,22,array('alt'=>'deldir')). '</a>';
+			echo '<a href="?group_id='.$group_id.'&action=deldir&dirid='.$dirid.'" class="tabtitle" id="docman-deletedirectory" title="'._('Permanently delete this directory').'" >'. html_image('docman/delete-directory.png',22,22,array('alt'=>'deldir')). '</a>';
 		}
 	}
 
 	if (forge_check_perm('docman', $group_id, 'submit')) {
-		echo '<a href="#" id="docman-additem" ';
-		if ($use_tooltips)
-			echo 'title="'. _('Add a new item in this directory') . '" ';
-
-		echo '>'. html_image('docman/insert-directory.png',22,22,array('alt'=>'additem')). '</a>';
+		echo '<a href="#" class="tabtitle" id="docman-additem" title="'. _('Add a new item in this directory') . '" >'. html_image('docman/insert-directory.png',22,22,array('alt'=>'additem')). '</a>';
 	}
 
-	echo '<a href="/docman/view.php/'.$group_id.'/zip/full/'.$dirid.'" ';
-	if ($use_tooltips)
-		echo 'class="docman-downloadaszip" title="'. _('Download this directory as a zip') . '" ';
+	echo '<a href="/docman/view.php/'.$group_id.'/zip/full/'.$dirid.'" class="tabtitle" title="'. _('Download this directory as a zip') . '" >' . html_image('docman/download-directory-zip.png',22,22,array('alt'=>'downloadaszip')). '</a>';
 
-	echo '>' . html_image('docman/download-directory-zip.png',22,22,array('alt'=>'downloadaszip')). '</a>';
-
 	echo '</h3>';
 
 	if (forge_check_perm('docman', $group_id, 'approve')) {
@@ -213,20 +177,15 @@
 				$docurl = util_make_uri('/docman/view.php/'.$group_id.'/'.$d->getID().'/'.urlencode($d->getFileName()));
 			}
 		}
-		echo '<td><a href="'.$docurl.'" class="docman-viewfile"';
-		if ($use_tooltips)
-			echo ' title="'._('View this document').'"';
-
-		echo ' >';
+		echo '<td><a href="'.$docurl.'" class="tabtitle-nw" title="'._('View this document').'" >';
 		echo html_image($d->getFileTypeImage(), '22', '22', array('alt'=>$d->getFileType()));;
 		echo '</a></td>';
 		echo '<td>';
 		if (($d->getUpdated() && $time_new > (time() - $d->getUpdated())) || $time_new > (time() - $d->getCreated())) {
 			$html_image_attr = array();
 			$html_image_attr['alt'] = _('new');
-			$html_image_attr['class'] = 'docman-newdocument';
-			if ($use_tooltips)
-				$html_image_attr['title'] = _('Created or updated since less than 7 days');
+			$html_image_attr['class'] = 'tabtitle-ne';
+			$html_image_attr['title'] = _('Created or updated since less than 7 days');
 			echo html_image('docman/new.png', '14', '14', $html_image_attr);
 		}
 		echo ' '.$d->getFileName();
@@ -245,10 +204,8 @@
 		if ($d->getReserved()) {
 			$html_image_attr = array();
 			$html_image_attr['alt'] = _('Reserved Document');
-			$html_image_attr['class'] = 'docman-reserveddocument';
-			if ($use_tooltips)
-				$html_image_attr['title'] = _('Reserved Document');
-
+			$html_image_attr['class'] = 'tabtitle';
+			$html_image_attr['title'] = _('Reserved Document');
 			echo html_image('docman/document-reserved.png', '22', '22', $html_image_attr);
 		} else {
 			echo $d->getStateName().'</td>';
@@ -287,48 +244,18 @@
 				}
 			}
 			if (!$d->getLocked() && !$d->getReserved()) {
-				echo '<a class="docman-movetotrash" href="?group_id='.$group_id.'&action=trashfile&view=listfile&dirid='.$dirid.'&fileid='.$d->getID().'" ';
-				if ($use_tooltips)
-					echo ' title="'. _('Move this document to trash') .'"';
-
-				echo ' >'.html_image('docman/trash-empty.png',22,22,array('alt'=>_('Move to trash this document'))). '</a>';
-
-				echo '<a class="docman-editfile" href="#" onclick="javascript:controllerListFile.toggleEditFileView(\''.$d->getID().'\')" ';
-				if ($use_tooltips)
-					echo ' title="'. _('Edit this document') .'" ';
-
-				echo '>'.html_image('docman/edit-file.png',22,22,array('alt'=>_('Edit this document'))). '</a>';
-
-				echo '<a class="docman-reservefile" href="?group_id='.$group_id.'&action=reservefile&view=listfile&dirid='.$dirid.'&fileid='.$d->getID().'" ';
-				if ($use_tooltips)
-					echo ' title="'. _('Reserve this document for later edition') .'" ';
-
-				echo '>'.html_image('docman/reserve-document.png',22,22,array('alt'=>_('Reserve this document'))). '</a>';
+				echo '<a class="tabtitle-ne" href="?group_id='.$group_id.'&action=trashfile&view=listfile&dirid='.$dirid.'&fileid='.$d->getID().'" title="'. _('Move this document to trash') .'" >'.html_image('docman/trash-empty.png',22,22,array('alt'=>_('Move to trash this document'))). '</a>';
+				echo '<a class="tabtitle-ne" href="#" onclick="javascript:controllerListFile.toggleEditFileView(\''.$d->getID().'\')" title="'. _('Edit this document') .'" >'.html_image('docman/edit-file.png',22,22,array('alt'=>_('Edit this document'))). '</a>';
+				echo '<a class="tabtitle-ne" href="?group_id='.$group_id.'&action=reservefile&view=listfile&dirid='.$dirid.'&fileid='.$d->getID().'" title="'. _('Reserve this document for later edition') .'" >'.html_image('docman/reserve-document.png',22,22,array('alt'=>_('Reserve this document'))). '</a>';
 			} else {
 				if ($d->getReservedBy() != $u->getID()) {
 					if (forge_check_perm('docman', $group_id, 'admin')) {
-						echo '<a class="docman-enforcereservation" href="?group_id='.$group_id.'&action=enforcereserve&view=listfile&dirid='.$dirid.'&fileid='.$d->getID().'" ';
-						if ($use_tooltips)
-							echo ' title="'. _('Enforce reservation') .'" ';
-
-						echo '>'.html_image('docman/enforce-document.png',22,22,array('alt'=>_('Enforce reservation')));
+						echo '<a class="docman-enforcereservation" href="?group_id='.$group_id.'&action=enforcereserve&view=listfile&dirid='.$dirid.'&fileid='.$d->getID().'" title="'. _('Enforce reservation') .'" >'.html_image('docman/enforce-document.png',22,22,array('alt'=>_('Enforce reservation')));
 					}
 				} else {
-					echo '<a class="docman-movetotrash" href="?group_id='.$group_id.'&action=trashfile&view=listfile&dirid='.$dirid.'&fileid='.$d->getID().'" ';
-					if ($use_tooltips)
-						echo ' title="'. _('Move this document to trash') .'" ';
-
-					echo '>'.html_image('docman/trash-empty.png',22,22,array('alt'=>_('Move to trash this document'))). '</a>';
-					echo '<a class="docman-editfile" href="#" onclick="javascript:controllerListFile.toggleEditFileView(\''.$d->getID().'\')" ';
-					if ($use_tooltips)
-						echo ' title="'. _('Edit this document') .'" ';
-
-					echo '>'.html_image('docman/edit-file.png',22,22,array('alt'=>_('Edit this document'))). '</a>';
-					echo '<a class="docman-releasereservation" href="?group_id='.$group_id.'&action=releasefile&view=listfile&dirid='.$dirid.'&fileid='.$d->getID().'" ';
-					if ($use_tooltips)
-						echo ' title="'. _('Release reservation') .'" ';
-
-					echo '>'.html_image('docman/release-document.png',22,22,array('alt'=>_('Release reservation'))). '</a>';
+					echo '<a class="tabtitle-ne" href="?group_id='.$group_id.'&action=trashfile&view=listfile&dirid='.$dirid.'&fileid='.$d->getID().'" title="'. _('Move this document to trash') .'" >'.html_image('docman/trash-empty.png',22,22,array('alt'=>_('Move to trash this document'))). '</a>';
+					echo '<a class="tabtitle-ne" href="#" onclick="javascript:controllerListFile.toggleEditFileView(\''.$d->getID().'\')" title="'. _('Edit this document') .'" >'.html_image('docman/edit-file.png',22,22,array('alt'=>_('Edit this document'))). '</a>';
+					echo '<a class="tabtitle-ne" href="?group_id='.$group_id.'&action=releasefile&view=listfile&dirid='.$dirid.'&fileid='.$d->getID().'" title="'. _('Release reservation') .'" >'.html_image('docman/release-document.png',22,22,array('alt'=>_('Release reservation'))). '</a>';
 				}
 			}
 			if ($d->isMonitoredBy($u->getID())) {
@@ -338,57 +265,25 @@
 				$option = 'add';
 				$titleMonitor = _('Start monitoring this document');
 			}
-			echo '<a class="docman-monitorfile" href="?group_id='.$group_id.'&action=monitorfile&option='.$option.'&view=listfile&dirid='.$dirid.'&fileid='.$d->getID().'" ';
-			if ($use_tooltips)
-				echo ' title="'.$titleMonitor.'" ';
-
-			echo '>'.html_image('docman/monitor-'.$option.'document.png',22,22,array('alt'=>$titleMonitor)). '</a>';
+			echo '<a class="tabtitle-ne" href="?group_id='.$group_id.'&action=monitorfile&option='.$option.'&view=listfile&dirid='.$dirid.'&fileid='.$d->getID().'" title="'.$titleMonitor.'" >'.html_image('docman/monitor-'.$option.'document.png',22,22,array('alt'=>$titleMonitor)). '</a>';
 			echo '</td>';
 		}
 		echo '</tr>';
 	}
 	echo $HTML->listTableBottom();
 	echo '<p>';
-	echo '<span id="docman-massactionmessage"';
-	if ($use_tooltips)
-		echo ' title="'. _('Actions availables for checked files, you need to check at least one file to get actions') . '" ';
-
-	echo '>';
+	echo '<span class="tabtitle" id="docman-massactionmessage" title="'. _('Actions availables for checked files, you need to check at least one file to get actions') . '" >';
 	echo _('Mass actions for selected files:');
 	echo '</span>';
 	echo '<span id="massactionactive" style="display: none;" >';
 	if (forge_check_perm('docman', $group_id, 'approve')) {
-		echo '<a class="docman-movetotrash" href="#" onclick="window.location.href=\'?group_id='.$group_id.'&action=trashfile&view=listfile&dirid='.$dirid.'&fileid=\'+controllerListFile.buildUrlByCheckbox(\'active\')" ';
-		if ($use_tooltips)
-			echo ' title="'. _('Move to trash') .'" ';
-
-		echo '>'.html_image('docman/trash-empty.png',22,22,array('alt'=>_('Move to trash'))). '</a>';
-		echo '<a class="docman-reservefile" href="#" onclick="window.location.href=\'?group_id='.$group_id.'&action=reservefile&view=listfile&dirid='.$dirid.'&fileid=\'+controllerListFile.buildUrlByCheckbox(\'active\')" ';
-		if ($use_tooltips)
-			echo ' title="'. _('Reserve for later edition') .'" ';
-
-		echo '>'.html_image('docman/reserve-document.png',22,22,array('alt'=>_('Reserve'))). '</a>';
-		echo '<a class="docman-releasereservation" href="#" onClick="window.location.href=\'?group_id='.$group_id.'&action=releasefile&view=listfile&dirid='.$dirid.'&fileid=\'+controllerListFile.buildUrlByCheckbox(\'active\')" ';
-		if ($use_tooltips)
-			echo ' title="'. _('Release reservation') .'" ';
-
-		echo '>'.html_image('docman/release-document.png',22,22,array('alt'=>_('Release reservation'))). '</a>';
-		echo '<a class="docman-monitorfile" href="#" onclick="window.location.href=\'?group_id='.$group_id.'&action=monitorfile&option=add&view=listfile&dirid='.$dirid.'&fileid=\'+controllerListFile.buildUrlByCheckbox(\'active\')" ';
-		if ($use_tooltips)
-			echo ' title="'. _('Start monitoring') .'" ';
-
-		echo '>'.html_image('docman/monitor-adddocument.png',22,22,array('alt'=>_('Start monitoring'))). '</a>';
-		echo '<a class="docman-monitorfile" href="#" onclick="window.location.href=\'?group_id='.$group_id.'&action=monitorfile&option=remove&view=listfile&dirid='.$dirid.'&fileid=\'+controllerListFile.buildUrlByCheckbox(\'active\')" ';
-		if ($use_tooltips)
-			echo ' title="'. _('Stop monitoring') .'" ';
-
-		echo '>'.html_image('docman/monitor-removedocument.png',22,22,array('alt'=>_('Stop monitoring'))). '</a>';
+		echo '<a class="tabtitle-ne" href="#" onclick="window.location.href=\'?group_id='.$group_id.'&action=trashfile&view=listfile&dirid='.$dirid.'&fileid=\'+controllerListFile.buildUrlByCheckbox(\'active\')" title="'. _('Move to trash') .'" >'.html_image('docman/trash-empty.png',22,22,array('alt'=>_('Move to trash'))). '</a>';
+		echo '<a class="tabtitle-ne" href="#" onclick="window.location.href=\'?group_id='.$group_id.'&action=reservefile&view=listfile&dirid='.$dirid.'&fileid=\'+controllerListFile.buildUrlByCheckbox(\'active\')" title="'. _('Reserve for later edition') .'" >'.html_image('docman/reserve-document.png',22,22,array('alt'=>_('Reserve'))). '</a>';
+		echo '<a class="tabtitle-ne" href="#" onClick="window.location.href=\'?group_id='.$group_id.'&action=releasefile&view=listfile&dirid='.$dirid.'&fileid=\'+controllerListFile.buildUrlByCheckbox(\'active\')" title="'. _('Release reservation') .'">'.html_image('docman/release-document.png',22,22,array('alt'=>_('Release reservation'))). '</a>';
+		echo '<a class="tabtitle-ne" href="#" onclick="window.location.href=\'?group_id='.$group_id.'&action=monitorfile&option=add&view=listfile&dirid='.$dirid.'&fileid=\'+controllerListFile.buildUrlByCheckbox(\'active\')" title="'. _('Start monitoring') .'" >'.html_image('docman/monitor-adddocument.png',22,22,array('alt'=>_('Start monitoring'))). '</a>';
+		echo '<a class="tabtitle-ne" href="#" onclick="window.location.href=\'?group_id='.$group_id.'&action=monitorfile&option=remove&view=listfile&dirid='.$dirid.'&fileid=\'+controllerListFile.buildUrlByCheckbox(\'active\')" title="'. _('Stop monitoring') .'" >'.html_image('docman/monitor-removedocument.png',22,22,array('alt'=>_('Stop monitoring'))). '</a>';
 	}
-	echo '<a class="docman-downloadaszip" href="#" onclick="window.location.href=\'/docman/view.php/'.$group_id.'/zip/selected/'.$dirid.'/\'+controllerListFile.buildUrlByCheckbox(\'active\')" ';
-	if ($use_tooltips)
-		echo ' title="'. _('Download as a zip') . '" ';
-
-	echo '>' . html_image('docman/download-directory-zip.png',22,22,array('alt'=>'Download as Zip')). '</a>';
+	echo '<a class="tabtitle" href="#" onclick="window.location.href=\'/docman/view.php/'.$group_id.'/zip/selected/'.$dirid.'/\'+controllerListFile.buildUrlByCheckbox(\'active\')" title="'. _('Download as a zip') . '" >' . html_image('docman/download-directory-zip.png',22,22,array('alt'=>'Download as Zip')). '</a>';
 	echo '</span>';
 	echo '</p>';
 	echo '</div>';

Modified: trunk/src/common/docman/views/listtrashfile.php
===================================================================
--- trunk/src/common/docman/views/listtrashfile.php	2011-06-24 11:59:45 UTC (rev 13573)
+++ trunk/src/common/docman/views/listtrashfile.php	2011-06-24 13:14:23 UTC (rev 13574)
@@ -81,15 +81,6 @@
 jQuery(document).ready(function() {
 	controllerListTrash = new DocManListFileController({
 		groupId:		<?php echo $group_id ?>,
-		tipsyElements:		[
-						{selector: '#docman-editdirectory', options:{delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '.docman-delete', options:{delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '#docman-trashdirectory', options:{delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '.docman-downloadaszip', options:{delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '.docman-viewfile', options:{gravity: 'nw', delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '.docman-editfile', options:{gravity: 'ne', delayIn: 500, delayOut: 0, fade: true}},
-						],
-
 		divEditDirectory:	jQuery('#editdocgroup'),
 		buttonEditDirectory:	jQuery('#docman-editdirectory'),
 		docManURL:		'<?php util_make_uri("docman") ?>',
@@ -113,20 +104,10 @@
 	if ($DocGroupName) {
 		echo '<h3 class="docman_h3" >Directory : <i>'.$DocGroupName.'</i> ';
 		if ($DocGroupName != '.trash') {
-			echo '<a href="#" id="docman-editdirectory" ';
-			if ($use_tooltips)
-				echo 'title="'._('Edit this directory').'"';
-
-			echo ' >'. html_image('docman/configure-directory.png',22,22,array('alt'=>'edit')). '</a>';
-			echo '<a href="?group_id='.$group_id.'&action=deldir&dirid='.$dirid.'" id="docman-deletedirectory" ';
-			if ($use_tooltips)
-				echo ' title="'._('Delete permanently this directory and his content.').'" ';
-
-			echo '>'. html_image('docman/delete-directory.png',22,22,array('alt'=>'deldir')). '</a>';
+			echo '<a href="#" id="docman-editdirectory" class="tabtitle"title="'._('Edit this directory').'" >'. html_image('docman/configure-directory.png',22,22,array('alt'=>'edit')). '</a>';
+			echo '<a href="?group_id='.$group_id.'&action=deldir&dirid='.$dirid.'" id="docman-deletedirectory" title="'._('Delete permanently this directory and his content.').'" >'. html_image('docman/delete-directory.png',22,22,array('alt'=>'deldir')). '</a>';
 		}
-
 		echo '</h3>';
-
 		echo '<div class="docman_div_include" id="editdocgroup" style="display:none;">';
 		echo '<h4 class="docman_h4">'. _('Edit this directory') .'</h4>';
 		include ($gfcommon.'docman/views/editdocgroup.php');
@@ -153,11 +134,7 @@
 					$docurl = util_make_uri('/docman/view.php/'.$group_id.'/'.$d->getID().'/'.urlencode($d->getFileName()));
 				}
 			}
-			echo '<td><a href="'.$docurl.'" class="docman-viewfile"';
-			if ($use_tooltips)
-				echo ' title="'._('View this document').'"';
-
-			echo ' >';
+			echo '<td><a href="'.$docurl.'" class="tabtitle-nw" title="'._('View this document').'" >';
 			echo html_image($d->getFileTypeImage(), '22', '22', array('alt'=>$d->getFileType()));;
 			echo '</a></td>';
 			echo '<td>';
@@ -165,8 +142,7 @@
 				$html_image_attr = array();
 				$html_image_attr['alt'] = _('new');
 				$html_image_attr['class'] = 'docman-newdocument';
-				if ($use_tooltips)
-					$html_image_attr['title'] = _('Created or updated since less than 7 days');
+				$html_image_attr['title'] = _('Created or updated since less than 7 days');
 				echo html_image('docman/new.png', '14', '14', $html_image_attr);
 			}
 			echo ' '.$d->getFileName();
@@ -206,33 +182,16 @@
 			}
 
 			echo '<td>';
-			echo '<a class="docman-delete" href="?group_id='.$group_id.'&action=delfile&view=listtrashfile&dirid='.$dirid.'&fileid='.$d->getID().'" ';
-			if ($use_tooltips)
-				echo ' title="'. _('Delete permanently this document.') .'"';
-
-			echo ' >'.html_image('docman/delete-directory.png',22,22,array('alt'=>_('Delete permanently this document.'))). '</a>';
-
-			echo '<a class="docman-editfile" href="#" onclick="javascript:controllerListTrash.toggleEditFileView(\''.$d->getID().'\')" ';
-			if ($use_tooltips)
-				echo ' title="'. _('Edit this document') .'" ';
-
-			echo '>'.html_image('docman/edit-file.png',22,22,array('alt'=>_('Edit this document'))). '</a>';
+			echo '<a class="docman-delete" class="tabtitle" href="?group_id='.$group_id.'&action=delfile&view=listtrashfile&dirid='.$dirid.'&fileid='.$d->getID().'" title="'. _('Delete permanently this document.') .'" >'.html_image('docman/delete-directory.png',22,22,array('alt'=>_('Delete permanently this document.'))). '</a>';
+			echo '<a class="tabtitle-ne" href="#" onclick="javascript:controllerListTrash.toggleEditFileView(\''.$d->getID().'\')" title="'. _('Edit this document') .'" >'.html_image('docman/edit-file.png',22,22,array('alt'=>_('Edit this document'))). '</a>';
 			echo '</td>';
 		}
 		echo '</tr>';
 		echo $HTML->listTableBottom();
 		echo '<p>';
 		echo _('Mass actions for selected files:');
-		echo '<a class="docman-delete" href="#" onClick="window.location.href=\'?group_id='.$group_id.'&action=delfile&view=listtrashfile&dirid='.$dirid.'&fileid=\'+controllerListTrash.buildUrlByCheckbox()" ';
-		if ($use_tooltips)
-			echo ' title="'. _('Delete permanently.') .'" ';
-
-		echo '>'.html_image('docman/delete-directory.png',22,22,array('alt'=>_('Delete permanently.'))). '</a>';
-		echo '<a class="docman-downloadaszip" href="#" onClick="window.location.href=\'/docman/view.php/'.$group_id.'/zip/selected/\'+controllerListTrash.buildUrlByCheckbox()" ';
-		if ($use_tooltips)
-			echo ' title="'. _('Download as a zip') . '" ';
-
-		echo '>' . html_image('docman/download-directory-zip.png',22,22,array('alt'=>'Download as Zip')). '</a>';
+		echo '<a class="docman-delete" class="tabtitle" href="#" onClick="window.location.href=\'?group_id='.$group_id.'&action=delfile&view=listtrashfile&dirid='.$dirid.'&fileid=\'+controllerListTrash.buildUrlByCheckbox()" title="'. _('Delete permanently.') .'" >'.html_image('docman/delete-directory.png',22,22,array('alt'=>_('Delete permanently.'))). '</a>';
+		echo '<a class="docman-downloadaszip" class="tabtitle" href="#" onClick="window.location.href=\'/docman/view.php/'.$group_id.'/zip/selected/\'+controllerListTrash.buildUrlByCheckbox()" title="'. _('Download as a zip') . '" >' . html_image('docman/download-directory-zip.png',22,22,array('alt'=>'Download as Zip')). '</a>';
 		echo '</p>';
 		include ($gfcommon.'docman/views/editfile.php');
 		echo '</div>';

Modified: trunk/src/common/docman/views/menu.php
===================================================================
--- trunk/src/common/docman/views/menu.php	2011-06-24 11:59:45 UTC (rev 13573)
+++ trunk/src/common/docman/views/menu.php	2011-06-24 13:14:23 UTC (rev 13574)
@@ -29,7 +29,6 @@
 global $HTML; // html object
 global $d_arr; // document array
 global $group_id; // id of group
-global $use_tooltips; // enable or not tooltips in docman
 
 if (!forge_check_perm('docman', $group_id, 'read')) {
 	$return_msg= _('Document Manager Access Denied');
@@ -41,52 +40,21 @@
 $menu_links = array();
 $menu_attr = array();
 
-?>
-<script type="text/javascript">//<![CDATA[
-var controllerMenu;
-
-jQuery(document).ready(function() {
-	controllerMenu = new DocManMenuController({
-		tipsyElements:	[
-					{selector: '#addItemDocmanMenu', options:{gravity: 'nw', delayIn: 500, delayOut: 0, fade: true}},
-					{selector: '#listFileDocmanMenu', options:{gravity: 'nw', delayIn: 500, delayOut: 0, fade: true}},
-					{selector: '#searchDocmanMenu', options:{gravity: 'nw', delayIn: 500, delayOut: 0, fade: true}},
-					{selector: '#trashDocmanMenu', options:{gravity: 'nw', delayIn: 500, delayOut: 0, fade: true}},
-					{selector: '#adminDocmanMenu', options:{gravity: 'nw', delayIn: 500, delayOut: 0, fade: true}},
-				],
-	});
-});
-
-/* ]]> */</script>
-<?php
-
 $menu_text[] = _('List files & Directories');
 $menu_links[] = '/docman/?group_id='.$group_id.'&view=listfile&dirid=0';
-if ($use_tooltips) {
-	$menu_attr[] = array('title' => _('View the files and the directories in 2 panels. Left a directory tree, right a list of files of specific directory'), 'id' => 'listFileDocmanMenu');
-} else {
-	$menu_attr[] = array();
-}
+$menu_attr[] = array('title' => _('View the files and the directories in 2 panels. Left a directory tree, right a list of files of specific directory'), 'id' => 'listFileDocmanMenu', 'class' => 'tabtitle-nw');
 
 if (forge_check_perm('docman', $group_id, 'submit')) {
 	$menu_text[] = _('Add new item');
 	$menu_links[] = '/docman/?group_id='.$group_id.'&view=additem';
-	if ($use_tooltips) {
-		$menu_attr[] = array('title' => _('Add a new item such as file, create directory, inject a zip at root level.'), 'id' => 'addItemDocmanMenu');
-	} else {
-		$menu_attr[] = array();
-	}
+	$menu_attr[] = array('title' => _('Add a new item such as file, create directory, inject a zip at root level.'), 'id' => 'addItemDocmanMenu', 'class' => 'tabtitle');
 }
 
 if ($g->useDocmanSearch()) {
 	if ($d_arr || count($d_arr) > 1) {
 		$menu_text[] = _('Search in documents');
 		$menu_links[] = '/docman/?group_id='.$group_id.'&view=search';
-		if ($use_tooltips) {
-			$menu_attr[] = array('title' => _('Search documents in this project using keywords.'), 'id' => 'searchDocmanMenu');
-		} else {
-			$menu_attr[] = array();
-		}
+		$menu_attr[] = array('title' => _('Search documents in this project using keywords.'), 'id' => 'searchDocmanMenu', 'class' => 'tabtitle');
 	}
 }
 
@@ -94,21 +62,13 @@
 	if (forge_check_perm('docman', $group_id, 'approve')) {
 		$menu_text[] = _('Trash');
 		$menu_links[] = '/docman/?group_id='.$group_id.'&view=listtrashfile';
-		if ($use_tooltips) {
-			$menu_attr[] = array('title' => _('Recover or delete permanently files with deleted status.'), 'id' => 'trashDocmanMenu');
-		} else {
-			$menu_attr[] = array();
-		}
+		$menu_attr[] = array('title' => _('Recover or delete permanently files with deleted status.'), 'id' => 'trashDocmanMenu', 'class' => 'tabtitle');
 	}
 
 	if (forge_check_perm('docman', $group_id, 'admin')) {
 		$menu_text[] = _('Admin');
 		$menu_links[] = '/docman/?group_id='.$group_id.'&view=admin';
-		if ($use_tooltips) {
-			$menu_attr[] = array('title' => _('Docman module administration.'), 'id' => 'adminDocmanMenu');
-		} else {
-			$menu_attr[] = array();
-		}
+		$menu_attr[] = array('title' => _('Docman module administration.'), 'id' => 'adminDocmanMenu', 'class' => 'tabtitle');
 	}
 }
 

Modified: trunk/src/common/docman/views/pendingfiles.php
===================================================================
--- trunk/src/common/docman/views/pendingfiles.php	2011-06-24 11:59:45 UTC (rev 13573)
+++ trunk/src/common/docman/views/pendingfiles.php	2011-06-24 13:14:23 UTC (rev 13574)
@@ -27,7 +27,6 @@
 global $dirid; // id of doc_group
 global $HTML; // Layout object
 global $nested_pending_docs;
-global $use_tooltips; // enable or not tooltips in docman
 
 if (!forge_check_perm('docman', $group_id, 'approve')) {
 	$return_msg= _('Document Manager Access Denied');
@@ -45,14 +44,6 @@
 jQuery(document).ready(function() {
 	controllerListPending = new DocManListFileController({
 		groupId:		<?php echo $group_id ?>,
-		tipsyElements:		[
-						{selector: '.docman-pendingdownloadaszip', options:{delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '#docman-massactionpendingmessage', options:{gravity: 'nw', delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '.docman-pendingactivate', options:{delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '.docman-pendingviewfile', options:{gravity: 'nw', delayIn: 500, delayOut: 0, fade: true}},
-						{selector: '.docman-pendingeditfile', options:{gravity: 'ne', delayIn: 500, delayOut: 0, fade: true}},
-					],
-
 		docManURL:		'<?php util_make_uri("docman") ?>',
 		lockIntervalDelay:	60000, //in microsecond and if you change this value, please update the check value 600
 	});
@@ -80,11 +71,7 @@
 					$docurl = util_make_uri('/docman/view.php/'.$group_id.'/'.$d->getID().'/'.urlencode($d->getFileName()));
 				}
 			}
-			echo '<td><a href="'.$docurl.'" class="docman-viewfile"';
-			if ($use_tooltips)
-				echo ' title="'._('View this document').'"';
-
-			echo ' >';
+			echo '<td><a href="'.$docurl.'" class="tabtitle-nw" title="'._('View this document').'" >';
 			echo html_image($d->getFileTypeImage(), '22', '22', array('alt'=>$d->getFileType()));;
 			echo '</a></td>';
 			echo '<td>';
@@ -92,8 +79,7 @@
 				$html_image_attr = array();
 				$html_image_attr['alt'] = _('new');
 				$html_image_attr['class'] = 'docman-newdocument';
-				if ($use_tooltips)
-					$html_image_attr['title'] = _('Created or updated since less than 7 days');
+				$html_image_attr['title'] = _('Created or updated since less than 7 days');
 				echo html_image('docman/new.png', '14', '14', $html_image_attr);
 			}
 			echo ' '.$d->getFileName();
@@ -133,34 +119,18 @@
 			}
 
 			echo '<td>';
-			echo '<a class="docman-pendingeditfile" href="#" onclick="javascript:controllerListPending.toggleEditFileView(\''.$d->getID().'\')" ';
-			if ($use_tooltips)
-				echo ' title="'. _('Edit this document') .'" ';
-
-			echo '>'.html_image('docman/edit-file.png', 22, 22, array('alt'=>_('Edit this document'))). '</a>';
+			echo '<a class="tabtitle-ne" href="#" onclick="javascript:controllerListPending.toggleEditFileView(\''.$d->getID().'\')" title="'. _('Edit this document') .'" >'.html_image('docman/edit-file.png', 22, 22, array('alt'=>_('Edit this document'))). '</a>';
 			echo '</td>';
 		}
 		echo '</tr>';
 		echo $HTML->listTableBottom();
 		echo '<p>';
-		echo '<span id="docman-massactionpendingmessage"';
-		if ($use_tooltips)
-			echo ' title="'. _('Actions availables for checked files, you need to check at least one file to get actions') . '" ';
-
-		echo '>';
+		echo '<span id="docman-massactionpendingmessage" class="tabtitle-nw" title="'. _('Actions availables for checked files, you need to check at least one file to get actions') . '">';
 		echo _('Mass actions for selected pending files:');
 		echo '</span>';
 		echo '<span id="massactionpending" class="docman-massaction-hide" style="display:none;" >';
-		echo '<a class="docman-pendingdownloadaszip" href="#" onclick="window.location.href=\'/docman/view.php/'.$group_id.'/zip/selected/'.$dirid.'/\'+controllerListPending.buildUrlByCheckbox(\'pending\')" ';
-		if ($use_tooltips)
-			echo ' title="'. _('Download as a zip') . '" ';
-
-		echo '>' . html_image('docman/download-directory-zip.png', 22, 22, array('alt'=>'Download as Zip')). '</a>';
-		echo '<a class="docman-pendingactivate" href="#" onclick="window.location.href=\'?group_id='.$group_id.'&action=validatefile&view=listfile&dirid='.$dirid.'&fileid=\'+controllerListPending.buildUrlByCheckbox(\'pending\')" ';
-		if ($use_tooltips)
-			echo ' title="'. _('Activate in this directory') . '" ';
-
-		echo '>' . html_image('docman/validate.png', 22, 22, array('alt'=>'Activate in this directory')). '</a>';
+		echo '<a class="tabtitle" href="#" onclick="window.location.href=\'/docman/view.php/'.$group_id.'/zip/selected/'.$dirid.'/\'+controllerListPending.buildUrlByCheckbox(\'pending\')" title="'. _('Download as a zip') . '" >' . html_image('docman/download-directory-zip.png', 22, 22, array('alt'=>'Download as Zip')). '</a>';
+		echo '<a class="tabtitle" href="#" onclick="window.location.href=\'?group_id='.$group_id.'&action=validatefile&view=listfile&dirid='.$dirid.'&fileid=\'+controllerListPending.buildUrlByCheckbox(\'pending\')" title="'. _('Activate in this directory') . '" >' . html_image('docman/validate.png', 22, 22, array('alt'=>'Activate in this directory')). '</a>';
 		echo '</span>';
 		echo '</p>';
 		echo '</div>';

Modified: trunk/src/common/include/utils.php
===================================================================
--- trunk/src/common/include/utils.php	2011-06-24 11:59:45 UTC (rev 13573)
+++ trunk/src/common/include/utils.php	2011-06-24 13:14:23 UTC (rev 13574)
@@ -1129,10 +1129,20 @@
 }
 
 function util_make_link($path, $text, $extra_params = false, $absolute = false) {
+	$use_tooltips = 1;
+	if (session_loggedin()) {
+		$user = session_get_user();
+		$use_tooltips = $user->usesTooltips();
+	}
 	$ep = '';
 	if (is_array($extra_params)) {
 		foreach ($extra_params as $key => $value) {
-			$ep .= "$key=\"$value\" ";
+			if ($key != 'title') {
+				$ep .= "$key=\"$value\" ";
+			}
+			if ($key == 'title' && $use_tooltips) {
+				$ep .= "$key=\"$value\" ";
+			}
 		}
 	}
 	if ($absolute) {

Modified: trunk/src/www/docman/index.php
===================================================================
--- trunk/src/www/docman/index.php	2011-06-24 11:59:45 UTC (rev 13573)
+++ trunk/src/www/docman/index.php	2011-06-24 13:14:23 UTC (rev 13574)
@@ -91,18 +91,6 @@
 	}
 }
 
-$use_tooltips = 1;
-
-if (session_loggedin()) {
-	$u =& user_get_object(user_getid());
-	if (!$u || !is_object($u)) {
-		exit_error(_('Could Not Get User'));
-	} elseif ($u->isError()) {
-		exit_error($u->getErrorMessage(), 'my');
-	}
-	$use_tooltips = $u->usesTooltips();
-}
-
 $df = new DocumentFactory($g);
 if ($df->isError())
 	exit_error($df->getErrorMessage(), 'docman');
@@ -115,7 +103,6 @@
 if ($dgh->isError())
 	exit_error($dgh->getErrorMessage(), 'docman');
 
-html_use_tooltips();
 html_use_storage();
 use_javascript('scripts/DocManController.js');
 use_javascript('/js/sortable.js');

Modified: trunk/src/www/docman/scripts/DocManController.js
===================================================================
--- trunk/src/www/docman/scripts/DocManController.js	2011-06-24 11:59:45 UTC (rev 13573)
+++ trunk/src/www/docman/scripts/DocManController.js	2011-06-24 13:14:23 UTC (rev 13574)
@@ -25,16 +25,11 @@
 
 /*! ListFileController
  * @param groupId the current FusionForge groupID
- * @param tipsyElements [{selector: "name", options:{delayIn: 1000, delayOut: 1000, fade: true, gravity: 's'}}]
  */
 DocManListFileController = function(params)
 {
 	this.lockInterval	= [];
 	this.params		= params;
-
-	if (typeof(jQuery(window).tipsy) == 'function') {
-		this.initTipsy();
-	}
 	this.bindControls();
 	this.resizableDiv();
 	this.initSize();
@@ -43,22 +38,9 @@
 DocManAddItemController = function(params)
 {
 	this.params	= params;
-
-	if (typeof(jQuery(window).tipsy) == 'function') {
-		this.initTipsy();
-	}
 	this.bindControls();
 };
 
-DocManMenuController = function(params)
-{
-	this.params	= params;
-
-	if (typeof(jQuery(window).tipsy) == 'function') {
-		this.initTipsy();
-	}
-};
-
 DocManListFileController.prototype =
 {
 	/*! Binds the controls to the actions
@@ -108,20 +90,6 @@
 		isDragging = true;
 	},
 
-	/*! initializes tipsy
-	 */
-	initTipsy: function() {
-		for(var i = 0; i < this.params.tipsyElements.length; i++) {
-			var el = this.params.tipsyElements[i];
-
-			jQuery(el.selector).tipsy({
-				gravity: el.options.gravity,
-				delayIn: el.options.delayIn,
-				delayOut: el.options.delayOut,
-				fade: el.options.fade});
-		}
-	},
-
 	/*! toggle edit group view div visibility
 	 */
 	toggleEditDirectoryView: function() {
@@ -314,35 +282,4 @@
 			}
 		}
 	},
-
-	/*! initializes tipsy
-	 */
-	initTipsy: function() {
-		for(var i = 0; i < this.params.tipsyElements.length; i++) {
-			var el = this.params.tipsyElements[i];
-
-			jQuery(el.selector).tipsy({
-				gravity: el.options.gravity,
-				delayIn: el.options.delayIn,
-				delayOut: el.options.delayOut,
-				fade: el.options.fade});
-		}
-	}
 }
-
-DocManMenuController.prototype =
-{
-	/*! initializes tipsy
-	*/
-	initTipsy: function() {
-		for(var i = 0; i < this.params.tipsyElements.length; i++) {
-			var el = this.params.tipsyElements[i];
-
-			jQuery(el.selector).tipsy({
-				gravity: el.options.gravity,
-				delayIn: el.options.delayIn,
-				delayOut: el.options.delayOut,
-				fade: el.options.fade});
-		}
-	}
-}

Modified: trunk/src/www/include/Layout.class.php
===================================================================
--- trunk/src/www/include/Layout.class.php	2011-06-24 11:59:45 UTC (rev 13573)
+++ trunk/src/www/include/Layout.class.php	2011-06-24 13:14:23 UTC (rev 13574)
@@ -1318,23 +1318,27 @@
 	function printSoftwareMapLinks() {
 		$subMenuTitle = array();
 		$subMenuUrl = array();
+		$subMenuAttr = array();
 
 		if (forge_get_config('use_project_tags')) {
 			$subMenuTitle[] = _('Tag cloud');
 			$subMenuUrl[] = '/softwaremap/tag_cloud.php';
+			$subMenuAttr[] = array('title' => _('Browse per tags defined by the projects.'), 'class' => 'tabtitle-nw');
 		}
 
 		if (forge_get_config('use_trove')) {
 			$subMenuTitle[] = _('Project Tree');
 			$subMenuUrl[] = '/softwaremap/trove_list.php';
+			$subMenuAttr[] = array('title' => _('Browse per category.'), 'class' => 'tabtitle');
 		}
 
 		if (forge_get_config('use_project_full_list')) {
 			$subMenuTitle[] = _('Project List');
 			$subMenuUrl[] = '/softwaremap/full_list.php';
+			$subMenuAttr[] = array('title' => _('Complete listing of available projects.'), 'class' => 'tabtitle');
 		}
 
-		echo $this->subMenu($subMenuTitle, $subMenuUrl);
+		echo $this->subMenu($subMenuTitle, $subMenuUrl, $subMenuAttr);
 	}
 }
 

Modified: trunk/src/www/include/html.php
===================================================================
--- trunk/src/www/include/html.php	2011-06-24 11:59:45 UTC (rev 13573)
+++ trunk/src/www/include/html.php	2011-06-24 13:14:23 UTC (rev 13574)
@@ -787,52 +787,31 @@
 	$all_l = array();
 	$arr_attr = array();
 
-	$user = session_get_user();
-	$use_tooltips = $user->usesTooltips();
-
 	$arr_t[] = _('My Personal Page');
 	$arr_l[] = '/my/';
-	if ($use_tooltips) {
-		$arr_attr[] = array('title' => _('View your personal page, a selection of widgets to follow the informations from projects.'));
-	} else {
-		$arr_attr[] = array();
-	}
+	$arr_attr[] = array('title' => _('View your personal page, a selection of widgets to follow the informations from projects.'), 'class' => 'tabtitle-nw');
 
+
 	$arr_t[] = _('Trackers dashboard');
 	$arr_l[] = '/my/dashboard.php';
-	if ($use_tooltips) {
-		$arr_attr[] = array('title' => _('View your tasks and artifacts.'));
-	} else {
-		$arr_attr[] = array();
-	}
+	$arr_attr[] = array('title' => _('View your tasks and artifacts.'), 'class' => 'tabtitle');
 
+
 	if (forge_get_config('use_diary')) {
 		$arr_t[] = _('Diary & Notes');
 		$arr_l[] = '/my/diary.php';
-		if ($use_tooltips) {
-			$arr_attr[] = array('title' => _('Manage your diary. Add, modify or delete your notes.'));
-		} else {
-			$arr_attr[] = array();
-		}
+		$arr_attr[] = array('title' => _('Manage your diary. Add, modify or delete your notes.'), 'class' => 'tabtitle');
 	}
 
 	$arr_t[] = _('Account Maintenance');
 	$arr_l[] = '/account/';
-	if ($use_tooltips) {
-		$arr_attr[] = array('title' => _('Manage your account. Change your password, select your preferences.'));
-	} else {
-		$arr_attr[] = array();
-	}
+	$arr_attr[] = array('title' => _('Manage your account. Change your password, select your preferences.'), 'class' => 'tabtitle');
 
 	if (!forge_get_config('project_registration_restricted')
 			|| forge_check_global_perm('approve_projects', '')) {
 		$arr_t[] = _('Register Project');
 		$arr_l[] = '/register/';
-		if ($use_tooltips) {
-			$arr_attr[] = array('title' => _('Register a new project in forge, following the workflow.'));
-		} else {
-			$arr_attr[] = array();
-		}
+		$arr_attr[] = array('title' => _('Register a new project in forge, following the workflow.'), 'class' => 'tabtitle');
 	}
 
 	echo ($HTML->printSubMenu($arr_t, $arr_l, $arr_attr));

Modified: trunk/src/www/softwaremap/trove_list.php
===================================================================
--- trunk/src/www/softwaremap/trove_list.php	2011-06-24 11:59:45 UTC (rev 13573)
+++ trunk/src/www/softwaremap/trove_list.php	2011-06-24 13:14:23 UTC (rev 13574)
@@ -74,11 +74,11 @@
 if (isset($hierarchy_used)) {
 	$hierarMenuTitle[] = _('Per Category');
 	$hierarMenuTitle[] = _('Per Hierarchy');
-	$hierarMenuTips[] = _('Browse per category the available projects. Some projects might not appear here they do not choose any categories');
-	$hierarMenuTips[] = _('Browse per hierarchy. Projects can share relationship between projects, as father and sons');
+	$hierarMenuAttr[] = array('title' => _('Browse per category the available projects. Some projects might not appear here they do not choose any categories'), 'class' => 'tabtitle-nw');
+	$hierarMenuAttr[] = array('title' => _('Browse per hierarchy. Projects can share relationship between projects, as father and sons'), 'class' => 'tabtitle');
 	$hierarMenuUrl[] = '/softwaremap/trove_list.php?cat=c';
 	$hierarMenuUrl[] = '/softwaremap/trove_list.php?cat=h';
-	echo ($HTML->subMenu($hierarMenuTitle, $hierarMenuUrl, $hierarMenuTips));
+	echo ($HTML->subMenu($hierarMenuTitle, $hierarMenuUrl, $hierarMenuAttr));
 }
 
 if ( $cat === 'c' ) {

Modified: trunk/src/www/themes/funky/Theme.class.php
===================================================================
--- trunk/src/www/themes/funky/Theme.class.php	2011-06-24 11:59:45 UTC (rev 13573)
+++ trunk/src/www/themes/funky/Theme.class.php	2011-06-24 13:14:23 UTC (rev 13574)
@@ -250,7 +250,17 @@
 			?>
 			<script language="JavaScript" type="text/javascript">/* <![CDATA[ */
 				if (typeof(jQuery(window).tipsy) == 'function') {
-					jQuery(document).ready(function() {jQuery('.tabtitle').tipsy()});
+					jQuery(document).ready(
+						function() {
+							jQuery('.tabtitle').tipsy({delayIn: 500, delayOut: 0, fade: true});
+							jQuery('.tabtitle-nw').tipsy({gravity: 'nw', delayIn: 500, delayOut: 0, fade: true});
+							jQuery('.tabtitle-ne').tipsy({gravity: 'ne', delayIn: 500, delayOut: 0, fade: true});
+							jQuery('.tabtitle-w').tipsy({gravity: 'w', delayIn: 500, delayOut: 0, fade: true});
+							jQuery('.tabtitle-e').tipsy({gravity: 'w', delayIn: 500, delayOut: 0, fade: true});
+							jQuery('.tabtitle-sw').tipsy({gravity: 'w', delayIn: 500, delayOut: 0, fade: true});
+							jQuery('.tabtitle-se').tipsy({gravity: 'w', delayIn: 500, delayOut: 0, fade: true});
+						}
+					);
 				}
 			/* ]]> */</script>
 			<?




More information about the Fusionforge-commits mailing list