[Fusionforge-commits] FusionForge branch Branch_5_3 updated. b648479152b0aaeb5cd7b7c82d1ad6820cc468a5

Franck VILLAUME nerville at fusionforge.org
Mon Feb 10 14:14:48 CET 2014


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, Branch_5_3 has been updated
       via  b648479152b0aaeb5cd7b7c82d1ad6820cc468a5 (commit)
      from  84d3ee4db3622848b4e6a3825acd2b0fded2dca0 (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 b648479152b0aaeb5cd7b7c82d1ad6820cc468a5
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Mon Feb 10 14:14:12 2014 +0100

    scmgit: avoid iframe loop when user uses the project_home link in gitweb

diff --git a/src/plugins/scmgit/common/GitPlugin.class.php b/src/plugins/scmgit/common/GitPlugin.class.php
index 13f3f66..2e34451 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -317,6 +317,12 @@ class GitPlugin extends SCMPlugin {
 			echo $HTML->getJavascripts();
 			echo '<script type="text/javascript">//<![CDATA[
 				jQuery(\'#scm_iframe\').iframeAutoHeight({heightOffset: 50});
+				jQuery(\'#scm_iframe\').load(function (){
+						if (this.contentWindow.location.href == "'.util_make_url('/projects/'.$project->getUnixName()).'/") {
+							console.log(this.contentWindow.location.href);
+							window.location.href = this.contentWindow.location.href;
+						};
+					});
 				//]]></script>';
 		}
 	}

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

Summary of changes:
 src/plugins/scmgit/common/GitPlugin.class.php |    6 ++++++
 1 file changed, 6 insertions(+)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list