com web/php: - Link to bugreporting into the footer too - The OE apparently wants ".php" after the id..: js/common.js

From: Date: Wed, 29 Dec 2010 19:54:41 +0000
Subject: com web/php: - Link to bugreporting into the footer too - The OE apparently wants ".php" after the id..: js/common.js
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-23715@lists.php.net to get a copy of this message
Commit: 5ba27da2c69cc88d1fdf7db6af965b359b630ff6 Author: Hannes Magnusson <bjori@php.net> Wed, 29 Dec 2010 19:54:41 +0000 Parents: 64d9a5ca502e427f5bb47f08ff5fd7f2a72e4175 Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=5ba27da2c69cc88d1fdf7db6af965b359b630ff6 Log: - Link to bugreporting into the footer too - The OE apparently wants ".php" after the id.. Changed paths: M js/common.js Diff: diff --git a/js/common.js b/js/common.js index b7ef263..7d92ffb 100644 --- a/js/common.js +++ b/js/common.js @@ -86,9 +86,13 @@ $(document).ready(function() { }); }); if ($("#quicktoc").length) { - var edit = "<li><a href='https://edit.php.net/?perm=/" + getLanguage() + "/" + $("section.docs > div").attr("id") + "&project=PHP'>Edit this page</a></li>"; - // Add edit this page link to the footer - $($(".footmenu")[1])..append(edit); + var pageid = $("section.docs > div").attr("id"); + var editurl = "https://edit.php.net/?perm=/" + getLanguage() + "/" + pageid + ".php&project=PHP"; + var bugurl = "http://bugs.php.net/report.php?bug_type=Documentation+problem&amp;manpage=" + pageid; + + // Add edit & bugreporting urls to the footer + $($(".footmenu")[1]).append("<li><a href='" + editurl + "'>Edit this page</a></li>"); + $($(".footmenu")[1]).append("<li><a href='" + bugurl + "'>Report bug on this page</a></li>"); var l = ""; $(".refsect1 h3").each(function() {

« previous php.webmaster (#23715) next »