Commit: e9b846b5a8d5d33201bf0b019c0d01956be567b7 Author: Dejan Marjanovic <[email protected]> Sun, 8 Oct 2017 20:07:32 +0200 Parents: 6c078ed4aef44733146da1155e07a18acbf2019d Branches: master
Link: http://git.php.net/?p=web/people.git;a=commitdiff;h=e9b846b5a8d5d33201bf0b019c0d01956be567b7 Log: Redirect to short URI on dropdown select Changed paths: M js/search.js Diff: diff --git a/js/search.js b/js/search.js index 84a28be..74764b2 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 = "?username=" + users[value]["username"]; }, + onSelect: function(value, data){ window.location = "/" + users[value]["username"]; }, lookup: lookup }); -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
