Commit:    64d9a5ca502e427f5bb47f08ff5fd7f2a72e4175
Author:    Hannes Magnusson <[email protected]>         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");


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to