[Fusionforge-commits] r10570 - trunk/plugins/coclico/hudson/include

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Mon Sep 20 22:43:43 CEST 2010


Author: aljeux
Date: 2010-09-20 22:43:43 +0200 (Mon, 20 Sep 2010)
New Revision: 10570

Modified:
   trunk/plugins/coclico/hudson/include/hudsonPlugin.class.php
Log:
Fix use of Js files in hudson plugin.

Modified: trunk/plugins/coclico/hudson/include/hudsonPlugin.class.php
===================================================================
--- trunk/plugins/coclico/hudson/include/hudsonPlugin.class.php	2010-09-20 20:43:38 UTC (rev 10569)
+++ trunk/plugins/coclico/hudson/include/hudsonPlugin.class.php	2010-09-20 20:43:43 UTC (rev 10570)
@@ -134,11 +134,6 @@
 	}
 
 	function jsFile($params) {
-		use_javascript('/scripts/prototype/prototype.js');
-		use_javascript('/scripts/scriptaculous/scriptaculous.js');
-		use_javascript('/scripts/codendi/Tooltip.js');
-		use_javascript('/scripts/codendi/LayoutManager.js');
-		use_javascript('/scripts/codendi/ReorderColumns.js');
 		use_javascript('/plugins/hudson/hudson_tab.js');
 	}
 
@@ -212,6 +207,11 @@
 		}
 	}
 	function widgets($params) {
+		$group = &group_get_object($GLOBALS['group_id']);
+		if ( !$group || !$group->usesPlugin ( $this->name ) ) {
+			return false;
+		}
+
 		require_once('common/widget/WidgetLayoutManager.class.php');
 		if ($params['owner_type'] == WidgetLayoutManager::OWNER_TYPE_USER) {
 			$params['codendi_widgets'][] = 'plugin_hudson_my_jobs';




More information about the Fusionforge-commits mailing list