X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=95667c1f3340041f5718d15f1f7183171146506b;hb=245923e335d0da5bec9495991a7846be9f0563ab;hp=6f049b14834fc7da623127ad47376fafdc360ae4;hpb=3641a0e689294f9a00c4c2aaa27f3afb1720f930;p=platal.git diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index 6f049b1..95667c1 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2007 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -26,8 +26,12 @@ function chgMainWinLoc(strPage) { strPage = platal_baseurl + strPage; if (parent.opener) { - parent.opener.document.location = strPage; - window.close(); + try { + parent.opener.document.location = strPage; + window.close(); + } catch(e) { + window.open(strPage); + } } else { document.location = strPage; } @@ -35,166 +39,252 @@ function chgMainWinLoc(strPage) //]]> {/literal} -{if $logged and $x.forlife eq $smarty.session.forlife} -[Modifier ma fiche] -{/if} - -