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  ac75ac19a71aa27031158e7fdf819a355b9a7ed7 (commit)
      from  0956e2b55464dc91de1619b2d53b3233c041f709 (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 -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=ac75ac19a71aa27031158e7fdf819a355b9a7ed7

commit ac75ac19a71aa27031158e7fdf819a355b9a7ed7
Author: Franck Villaume <[email protected]>
Date:   Fri Sep 23 17:39:31 2016 +0200

    widget: support url_prefix

diff --git a/src/common/widget/WidgetLayout.class.php 
b/src/common/widget/WidgetLayout.class.php
index 5e4ead2..bc7cd75 100644
--- a/src/common/widget/WidgetLayout.class.php
+++ b/src/common/widget/WidgetLayout.class.php
@@ -1,7 +1,7 @@
 <?php
 /**
  * Copyright (c) Xerox Corporation, Codendi Team, 2001-2009. All rights 
reserved
- * Copyright 2013, Franck Villaume - TrivialDev
+ * Copyright 2013,2016, Franck Villaume - TrivialDev
  *
  * This file is a part of Fusionforge.
  *
@@ -50,6 +50,7 @@ class WidgetLayout {
                        $this->rows[$key]->display($readonly, $owner_id, 
$owner_type);
                }
                if (!$readonly) {
+                       $url_prefix = forge_get_config('url_prefix');
                        $cells = "['". implode("', '", $this->getColumnIds()) 
."']";
                        echo <<<EOS
                                <script type='text/javascript'>/* <![CDATA[ */
@@ -63,7 +64,7 @@ class WidgetLayout {
                                                        placeholder: 
'ui-state-highlight',
                                                        handle: 
'.widget_titlebar_handle',
                                                        update: function 
(event, ui) {
-                                                               var urlparams = 
'/widgets/updatelayout.php?owner=$owner_type'+$owner_id+'&layout_id='+$this->id;
+                                                               var urlparams = 
'$urlprefix/widgets/updatelayout.php?owner=$owner_type'+$owner_id+'&layout_id='+$this->id;
                                                                
jQuery('#'+value).children('div').each(function(){
                                                                        
urlparams += '&'+value+'[]='+jQuery(this).attr('id').replace('widget_','');
                                                                        });

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

Summary of changes:
 src/common/widget/WidgetLayout.class.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to