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