X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=759bff1f36f318808577fd7302f86fdcdf6cb383;hb=28c20b86be8b40cecba0d83080879f81c49e07ad;hp=6f049b14834fc7da623127ad47376fafdc360ae4;hpb=3641a0e689294f9a00c4c2aaa27f3afb1720f930;p=platal.git diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index 6f049b1..759bff1 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,247 @@ function chgMainWinLoc(strPage) //]]> {/literal} -{if $logged and $x.forlife eq $smarty.session.forlife} -[Modifier ma fiche] -{/if} - -