svn: /web/php/trunk/js/ common.js

From: Date: Wed, 29 Dec 2010 19:54:41 +0000
Subject: svn: /web/php/trunk/js/ common.js
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-9954@lists.php.net to get a copy of this message
bjori Wed, 29 Dec 2010 19:54:41 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=306833 Log: - Link to bugreporting into the footer too - The OE apparently wants ".php" after the id.. Changed paths: U web/php/trunk/js/common.js Modified: web/php/trunk/js/common.js =================================================================== --- web/php/trunk/js/common.js 2010-12-29 19:54:34 UTC (rev 306832) +++ web/php/trunk/js/common.js 2010-12-29 19:54:41 UTC (rev 306833) @@ -86,10 +86,14 @@ }); }); 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() { var id = $(this).parent().attr("id");

« previous php.webmaster (#9954) next »