com web/people: Redirect to the current page: js/search.js
| From: | Hannes Magnusson | Date: | Fri, 13 Dec 2013 02:01:27 +0000 |
| Subject: | com web/people: Redirect to the current page: js/search.js | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-17582@lists.php.net to get a copy of this message | ||
Commit: 2842639b2d6c635b3ef2c4ccd8437ad5277aaa8a
Author: Hannes Magnusson <bjori@mongodb.com> Thu, 12 Dec 2013 18:01:27 -0800
Parents: 475abbef9e219594edeb631e5eabce5e802014da
Branches: master
Link: http://git.php.net/?p=web/people.git;a=commitdiff;h=2842639b2d6c635b3ef2c4ccd8437ad5277aaa8a
Log:
Redirect to the current page
Changed paths:
M js/search.js
Diff:
diff --git a/js/search.js b/js/search.js
index ecbd310..84a28be 100644
--- a/js/search.js
+++ b/js/search.js
@@ -11,7 +11,7 @@ $('input.search').autocomplete({
minChars:2,
maxHeight:400,
fnFormatResult: fnFormatSearchResult,
- onSelect: function(value, data){ window.location = "user.php?username=" +
users[value]["username"]; },
+ onSelect: function(value, data){ window.location = "?username=" +
users[value]["username"]; },
lookup: lookup
});