com web/php: Go to the actual file directly: js/search.js
| From: | Hannes Magnusson | Date: | Mon, 23 Dec 2013 18:39:50 +0000 |
| Subject: | com web/php: Go to the actual file directly: js/search.js | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-17782@lists.php.net to get a copy of this message | ||
Commit: 8659b7c74271bdff5dcf18443d172aacf52794da
Author: Hannes Magnusson <bjori@mongodb.com> Mon, 23 Dec 2013 10:39:50 -0800
Parents: 7d504a68b5d95cf3acd957c6b30fa9d629c78584
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=8659b7c74271bdff5dcf18443d172aacf52794da
Log:
Go to the actual file directly
Changed paths:
M js/search.js
Diff:
diff --git a/js/search.js b/js/search.js
index 4957fcd..3b805e9 100644
--- a/js/search.js
+++ b/js/search.js
@@ -311,7 +311,7 @@
$(element).typeahead(typeaheadOptions).on("typeahead:selected", function (_,
item) {
/* If the user has selected an autocomplete item and hits
* enter, we should take them straight to the page. */
- window.location = "/" + item.id;
+ window.location = "/manual/" + options.language + "/" +
item.id;
}).on("keyup", (function () {
/* typeahead.js doesn't give us a reliable event for the
* dropdown entries having been updated, so we'll hook into the