Skip to content

Commit

Permalink
Ajout d'un lien permettant d'aller à la même page
Browse files Browse the repository at this point in the history
... mais dans la version originale.
  • Loading branch information
daamien authored and gleu committed Jul 14, 2011
1 parent 02192ee commit 5cf0a1c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions postgresql/stylesheets/pg-chunk-common.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,20 @@
</div>
</form>
</div>
<div id="pgSideNav">
<div>
<script>
function jump_to_english() {
var fr_url = location.href;
var fr_pattern = "http://docs.postgresql(.fr|fr.org)/([7-9].[0-4])";
var en_pattern = "http://www.postgresql.org/docs/$2/static";
var reg=new RegExp(fr_pattern, "");
window.location = fr_url.replace(reg,en_pattern) ;
}
</script>
<a href="javascript:jump_to_english()">Version anglaise</a>
</div>
</div>
</div>

<div id="pgContentWrap">
Expand Down

0 comments on commit 5cf0a1c

Please sign in to comment.