[Fusionforge-commits] r14720 - trunk/src/plugins/message/common

Alain Peyrat aljeux at fusionforge.org
Wed Oct 26 11:45:10 CEST 2011


Author: aljeux
Date: 2011-10-26 11:45:09 +0200 (Wed, 26 Oct 2011)
New Revision: 14720

Modified:
   trunk/src/plugins/message/common/messagePlugin.class.php
Log:
Use html_use_jquery() in message plugin

Modified: trunk/src/plugins/message/common/messagePlugin.class.php
===================================================================
--- trunk/src/plugins/message/common/messagePlugin.class.php	2011-10-26 09:25:41 UTC (rev 14719)
+++ trunk/src/plugins/message/common/messagePlugin.class.php	2011-10-26 09:45:09 UTC (rev 14720)
@@ -1,6 +1,6 @@
 <?php
 /**
- * GForge Plugin SVNHudson Class
+ * FusionForge Plugin Message Class
  *
  * Copyright 2009 (c) Alain Peyrat <alain.peyrat at alcatel-lucent.com>
  *
@@ -21,8 +21,7 @@
  */
 
 /**
- * The svnhudsonPlugin class. It implements the Hooks for the presentation
- *  of table in hudson and task in detailed mode.
+ * The messagePlugin class.
  *
  */
 
@@ -38,7 +37,7 @@
 	}
 
 	function htmlhead() {
-		use_javascript('/scripts/jquery/jquery-1.4.2.min.js');
+		html_use_jquery();
 		use_javascript('/plugins/message/js/message.js');
 	}
 
@@ -50,7 +49,7 @@
 		$res = db_query_params('SELECT message FROM plugin_message', array());
 		if ($res && db_numrows($res)>0) {
 			echo '<div id="message_box">';
-			echo html_image('ic/close.png','','', array('id' => 'message_close', 'style' => 'float:right;cursor:pointer'));
+			echo '<img id="message_close" style="float:right;cursor:pointer"  src="/themes/acos/images/ic/close.png" alt="'._('Close').'" />';
 			echo db_result($res, 0, 'message');
 			echo '</div>';
 		}




More information about the Fusionforge-commits mailing list