com web/php: Throw 'edit this page' into the footer of manual pages, linking to the OE: js/common.js
| From: | Paul Dragoonis | Date: | Wed, 29 Dec 2010 19:08:15 +0000 |
| Subject: | com web/php: Throw 'edit this page' into the footer of manual pages, linking to the OE: js/common.js | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-23721@lists.php.net to get a copy of this message | ||
Commit: 64d9a5ca502e427f5bb47f08ff5fd7f2a72e4175
Author: Hannes Magnusson <bjori@php.net> Wed, 29 Dec 2010 19:08:15 +0000
Parents: bb8f85adb47395b5e026baa8c0f270ff670c0130
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=64d9a5ca502e427f5bb47f08ff5fd7f2a72e4175
Log:
Throw 'edit this page' into the footer of manual pages, linking to the OE
Changed paths:
M js/common.js
Diff:
diff --git a/js/common.js b/js/common.js
index a25a97c..b7ef263 100644
--- a/js/common.js
+++ b/js/common.js
@@ -86,6 +86,10 @@ $(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 l = "";
$(".refsect1 h3").each(function() {
var id = $(this).parent().attr("id");