[Fusionforge-commits] FusionForge branch master updated. 6077d76a4761fc4e7b9f2fc89639c86ee7e7e533

Franck VILLAUME nerville at fusionforge.org
Sat Oct 12 19:58:02 CEST 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  6077d76a4761fc4e7b9f2fc89639c86ee7e7e533 (commit)
      from  73c40f112e4d6b26e8b395befc8c99f40913a44a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6077d76a4761fc4e7b9f2fc89639c86ee7e7e533
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sat Oct 12 19:57:38 2013 +0200

    feature #578: add ajax widget

diff --git a/src/www/include/Layout.class.php b/src/www/include/Layout.class.php
index d794820..05e6b97 100644
--- a/src/www/include/Layout.class.php
+++ b/src/www/include/Layout.class.php
@@ -8,7 +8,7 @@
  * Copyright 2010-2012, Alain Peyrat - Alcatel-Lucent
  * Copyright © 2011 Thorsten Glaser – tarent GmbH
  * Copyright 2011 - Marc-Etienne Vargenau, Alcatel-Lucent
- * Copyright 2012 - Franck Villaume - TrivialDev
+ * Copyright 2012-2013, Franck Villaume - TrivialDev
  * Copyright (C) 2012 Alain Peyrat - Alcatel-Lucent
  * http://fusionforge.org
  *
@@ -1363,11 +1363,11 @@ if (isset($params['group']) && $params['group']) {
 		echo "</div>\n";
 		if ($widget->isAjax()) {
 			echo '<script type="text/javascript">/* <![CDATA[ */'."
-				document.observe('dom:loaded', function () {
-						$('$element_id-ajax').update('<div style=\"text-align:center\">". $this->getPicto('ic/spinner.gif','spinner','spinner', 10, 10) ."</div>');
-						new Ajax.Updater('$element_id-ajax',
-							'". $widget->getAjaxUrl($owner_id, $owner_type) ."'
-							);
+				jQuery(document).ready(function() {
+						jQuery('#$element_id-ajax').html('<div style=\"text-align:center\">". $this->getPicto('ic/spinner.gif','spinner','spinner', 10, 10) ."</div>');
+						jQuery.ajax({url:'". $widget->getAjaxUrl($owner_id, $owner_type) ."',
+							success: function(result){jQuery('#$element_id-ajax').html(result)},
+							});
 						});
 			/* ]]> */</script>";
 		}

-----------------------------------------------------------------------

Summary of changes:
 src/www/include/Layout.class.php |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list