[Fusionforge-commits] r11266 - trunk/src/www/widgets

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Fri Oct 29 20:08:37 CEST 2010


Author: aljeux
Date: 2010-10-29 20:08:37 +0200 (Fri, 29 Oct 2010)
New Revision: 11266

Modified:
   trunk/src/www/widgets/widgets.php
Log:
Load required js libs in widgets code.

Modified: trunk/src/www/widgets/widgets.php
===================================================================
--- trunk/src/www/widgets/widgets.php	2010-10-29 18:08:31 UTC (rev 11265)
+++ trunk/src/www/widgets/widgets.php	2010-10-29 18:08:37 UTC (rev 11266)
@@ -27,6 +27,12 @@
 require_once $gfcommon.'widget/WidgetLayoutManager.class.php';
 require_once $gfcommon.'widget/Valid_Widget.class.php';
 
+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');
+
 $hp = Codendi_HTMLPurifier::instance();
 if (isLogged()) {
     
@@ -50,8 +56,7 @@
 		    		$userm=UserManager::instance();
 		    		$current=$userm->getCurrentUser();
 		    		echo site_user_header(array('title'=>sprintf(_('Personal Page For %s'),user_getname())));
- 					use_javascript('/scripts/codendi/LayoutManager.js');
-                   //my_header(array('title'=>$title, 'selected_top_tab' => '/my/'));
+                  //my_header(array('title'=>$title, 'selected_top_tab' => '/my/'));
                     $lm->displayAvailableWidgets(user_getid(), WidgetLayoutManager::OWNER_TYPE_USER, $layout_id);
                     site_footer(array());
                     




More information about the Fusionforge-commits mailing list