[Fusionforge-commits] r16117 - branches/Branch_5_2/src/plugins/scmhook/common

Franck VILLAUME nerville at fusionforge.org
Sun Aug 19 17:32:14 CEST 2012


Author: nerville
Date: 2012-08-19 17:32:14 +0200 (Sun, 19 Aug 2012)
New Revision: 16117

Modified:
   branches/Branch_5_2/src/plugins/scmhook/common/scmhookPlugin.class.php
Log:
fix use of javascript

Modified: branches/Branch_5_2/src/plugins/scmhook/common/scmhookPlugin.class.php
===================================================================
--- branches/Branch_5_2/src/plugins/scmhook/common/scmhookPlugin.class.php	2012-08-18 16:20:00 UTC (rev 16116)
+++ branches/Branch_5_2/src/plugins/scmhook/common/scmhookPlugin.class.php	2012-08-19 15:32:14 UTC (rev 16117)
@@ -2,6 +2,7 @@
 /**
  * scmhookPlugin Class
  * Copyright 2011, Franck Villaume - Capgemini
+ * Copyright 2012, Franck Villaume - TrivialDev
  *
  * This file is part of FusionForge. FusionForge is free software;
  * you can redistribute it and/or modify it under the terms of the
@@ -31,6 +32,7 @@
 		$this->_addHook('scm_admin_update');
 		$this->_addHook('artifact_extra_detail');
 		$this->_addHook('task_extra_detail');
+		$this->_addHook('javascript_file');
 	}
 
 	function CallHook($hookname, &$params) {
@@ -64,6 +66,10 @@
 				}
 				break;
 			}
+			case 'javascript_file': {
+				use_javascript('/js/sortable.js');
+				break;
+			}
 		}
 		return true;
 	}
@@ -125,7 +131,6 @@
 
 	function displayScmHook($group_id) {
 		global $HTML;
-		use_javascript('/js/sortable.js');
 		$hooksAvailable = $this->getAvailableHooks($group_id);
 		$statusDeploy = $this->getStatusDeploy($group_id);
 		$hooksEnabled = $this->getEnabledHooks($group_id);




More information about the Fusionforge-commits mailing list