Commit: 48751177da663fc54c53c56c688ad81f2e9f3b81 Author: Peter Kokot <peterko...@gmail.com> Thu, 18 Oct 2018 21:29:46 +0200 Parents: 0f4f47c65f75c300ab9a43f292c188b4773cecb5 Branches: master
Link: http://git.php.net/?p=web/people.git;a=commitdiff;h=48751177da663fc54c53c56c688ad81f2e9f3b81 Log: Trim trailing whitespace Changed paths: M include/karma.php M include/layout.php M include/misc.php M index.php M js/jquery.autocomplete.js M js/search.js M js/userlisting.php M user.php Diff: diff --git a/include/karma.php b/include/karma.php index 8ade67c..c7f961b 100644 --- a/include/karma.php +++ b/include/karma.php @@ -140,14 +140,14 @@ function formatKarmaLinks($line) } // SVN } else { - // PHP Group members, such as Rasmus, got access to everything. This + // PHP Group members, such as Rasmus, got access to everything. This // check prevents broken links to /viewvc/* if ($path === '*') { return '<strong>This user has karma for everything!</strong>'; } $url = "https://svn.php.net/viewvc/".strtr($path, array("/*/" => "/trunk/")); - + } $line = sprintf('<a href="%s" title="%s %s">%s</a>', $url, $path, $extra, $path); return $line; diff --git a/include/layout.php b/include/layout.php index be8b4d7..efd182d 100644 --- a/include/layout.php +++ b/include/layout.php @@ -26,4 +26,4 @@ function site_footer($config = array()) { -// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 : +// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 : diff --git a/include/misc.php b/include/misc.php index d36783c..340dffc 100644 --- a/include/misc.php +++ b/include/misc.php @@ -127,4 +127,4 @@ function error($errormsg) exit; } -// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 : +// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 : diff --git a/index.php b/index.php index dcf9332..8f61c1d 100644 --- a/index.php +++ b/index.php @@ -48,4 +48,4 @@ $page = filter_input(INPUT_GET, "page", FILTER_VALIDATE_INT, array("options" => </div> <?php site_footer(); -// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 : +// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 : diff --git a/js/jquery.autocomplete.js b/js/jquery.autocomplete.js index 57f2c11..56026f7 100644 --- a/js/jquery.autocomplete.js +++ b/js/jquery.autocomplete.js @@ -209,7 +209,7 @@ } return ret; }, - + getSuggestions: function(q) { var cr, me, ls; cr = this.isLocal ? this.getSuggestionsLocal(q) : this.cachedResponse[q]; diff --git a/js/search.js b/js/search.js index 391cb5c..c26bda8 100644 --- a/js/search.js +++ b/js/search.js @@ -7,11 +7,11 @@ var fnFormatSearchResult = function(value, data, currentValue) { return '<img src="http://www.gravatar.com/avatar/' + users[value]["email"] + '.jpg?s=25" /> ' + listing; }; -$('input.search').autocomplete({ - minChars:2, +$('input.search').autocomplete({ + minChars:2, maxHeight:400, fnFormatResult: fnFormatSearchResult, - onSelect: function(value, data){ + onSelect: function(value, data){ if (window.location.host == 'master.php.net') { window.location = "/manage/users.php?username=" + users[value]["username"]; } else { @@ -21,4 +21,4 @@ $('input.search').autocomplete({ lookup: lookup }); -// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 : +// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 : diff --git a/js/userlisting.php b/js/userlisting.php index 257b4f0..4f322df 100644 --- a/js/userlisting.php +++ b/js/userlisting.php @@ -63,4 +63,4 @@ echo 'var users = ' . json_encode($user) . ';'; echo 'var lookup = ' . json_encode($lookup) . ';'; -// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 : +// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 : diff --git a/user.php b/user.php index 86fd02c..7b4e99c 100644 --- a/user.php +++ b/user.php @@ -89,4 +89,4 @@ $master_url = "https://master.php.net/manage/users.php?username=" . urlencode($U <?php site_footer(); -// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 : +// vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 : -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php