[Fusionforge-commits] r12962 - in branches/Branch_5_1: src/plugins/hudson/include src/plugins/hudson/www tests

Alain Peyrat aljeux at fusionforge.org
Thu Mar 31 18:42:32 CEST 2011


Author: aljeux
Date: 2011-03-31 18:42:32 +0200 (Thu, 31 Mar 2011)
New Revision: 12962

Modified:
   branches/Branch_5_1/src/plugins/hudson/include/hudsonPlugin.class.php
   branches/Branch_5_1/src/plugins/hudson/www/index.php
   branches/Branch_5_1/tests/SeleniumTests.php
Log:
Use hudson_tab.js only on hudson pages

Modified: branches/Branch_5_1/src/plugins/hudson/include/hudsonPlugin.class.php
===================================================================
--- branches/Branch_5_1/src/plugins/hudson/include/hudsonPlugin.class.php	2011-03-31 16:42:23 UTC (rev 12961)
+++ branches/Branch_5_1/src/plugins/hudson/include/hudsonPlugin.class.php	2011-03-31 16:42:32 UTC (rev 12962)
@@ -26,7 +26,6 @@
 		$this->_addHook("userisactivecheckbox") ; // The "use ..." checkbox in user account
 		$this->_addHook("userisactivecheckboxpost") ; //
 		$this->_addHook("project_admin_plugins"); // to show up in the admin page fro group
-		$this->_addHook('javascript_file', 'jsFile', false);
 		$this->_addHook('javascript',  false);
 		$this->_addHook('cssfile', 'cssFile', false);
 
@@ -70,8 +69,6 @@
 			use_stylesheet('/plugins/hudson/themes/default/css/style.css');
 		} elseif ($hookname == "cssfile") {
 			$this->cssFile($params);
-		} elseif ($hookname == "javascript_file") {
-			$this->jsFile($params);
 		} elseif ($hookname == "project_is_deleted") {
 			$this->projectIsDeleted($params);
 		} elseif ($hookname == "widget_instance") {
@@ -113,10 +110,6 @@
 		}
 	}
 
-	function jsFile($params) {
-		use_javascript('/plugins/hudson/hudson_tab.js');
-	}
-
 	/**
 	 * When a project is deleted,
 	 * we delete all the hudson jobs of this project

Modified: branches/Branch_5_1/src/plugins/hudson/www/index.php
===================================================================
--- branches/Branch_5_1/src/plugins/hudson/www/index.php	2011-03-31 16:42:23 UTC (rev 12961)
+++ branches/Branch_5_1/src/plugins/hudson/www/index.php	2011-03-31 16:42:32 UTC (rev 12962)
@@ -22,6 +22,8 @@
 require_once('preplugins.php');
 require_once('plugins_utils.php');
 
+use_javascript('/plugins/hudson/hudson_tab.js');
+
 $plugin_manager = PluginManager::instance();
 $p = $plugin_manager->getPluginByName('hudson');
 

Modified: branches/Branch_5_1/tests/SeleniumTests.php
===================================================================
--- branches/Branch_5_1/tests/SeleniumTests.php	2011-03-31 16:42:23 UTC (rev 12961)
+++ branches/Branch_5_1/tests/SeleniumTests.php	2011-03-31 16:42:32 UTC (rev 12962)
@@ -6,7 +6,7 @@
 require_once 'PHPUnit/Framework.php';
 require_once 'PHPUnit/TextUI/TestRunner.php';
 
-class SeleniumTests
+class AllTests
 {
 	public static function main()
 	{


Property changes on: branches/Branch_5_1/tests/SeleniumTests.php
___________________________________________________________________
Deleted: svn:executable
   - *




More information about the Fusionforge-commits mailing list