Commit:    c18e2b3db75363b43875bf1b9151b8b882dbfdb1
Author:    Christoph M. Becker <[email protected]>         Sat, 31 Oct 2020 
17:09:00 +0100
Parents:   ff95e8416336246baa66192715ebf4638bb2ba6f
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=c18e2b3db75363b43875bf1b9151b8b882dbfdb1

Log:
Fix parameter scrolling for proper variadic parameters

Changed paths:
  M  js/common.js


Diff:
diff --git a/js/common.js b/js/common.js
index 8813243a7..6c20ad18e 100644
--- a/js/common.js
+++ b/js/common.js
@@ -333,7 +333,7 @@ $(document).ready(function() {
 
     $('.refentry code.parameter').click(function(event)
     {
-      var id = $(this).text().replace(/^[&$]{0,2}/g, '');
+      var id = $(this).text().replace(/^&?(\.\.\.)?\$?/g, '');
       var offsetTop = $('.parameters, 
.options').find('.parameter').filter(function() {
           return $(this).text() === id; // 
https://bugs.php.net/bug.php?id=74493
       }).offset().top - 52;


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

Reply via email to