com web/people: Fix quick search for master, this was caused by PR#9 @ peopleweb: js/search.js
| From: | Kalle Sommer Nielsen | Date: | Mon, 30 Oct 2017 09:45:16 +0000 |
| Subject: | com web/people: Fix quick search for master, this was caused by PR#9 @ peopleweb: js/search.js | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26521@lists.php.net to get a copy of this message | ||
Commit: 4d13d32f605b753f533e18015492919646b67386
Author: Kalle Sommer Nielsen <kalle@php.net> Mon, 30 Oct 2017 10:45:16 +0100
Parents: 6e5e5061c23f4ad10fa6bfe196d6ba933622d27c
Branches: master
Link: http://git.php.net/?p=web/people.git;a=commitdiff;h=4d13d32f605b753f533e18015492919646b67386
Log:
Fix quick search for master, this was caused by PR#9 @ peopleweb
Bugs:
https://bugs.php.net/9
Changed paths:
M js/search.js
Diff:
diff --git a/js/search.js b/js/search.js
index 74764b2..391cb5c 100644
--- a/js/search.js
+++ b/js/search.js
@@ -11,7 +11,13 @@ $('input.search').autocomplete({
minChars:2,
maxHeight:400,
fnFormatResult: fnFormatSearchResult,
- onSelect: function(value, data){ window.location = "/" +
users[value]["username"]; },
+ onSelect: function(value, data){
+ if (window.location.host == 'master.php.net') {
+ window.location = "/manage/users.php?username=" +
users[value]["username"];
+ } else {
+ window.location = "/" + users[value]["username"];
+ }
+ },
lookup: lookup
});