Commit:    d1f2c95bf6c9e6430efdafcfbc4ac6a5b67ac18a
Author:    Hannes Magnusson <[email protected]>         Sun, 2 Jan 2011 14:24:57 
+0000
Parents:   bd55d4af5dbf6e929edc5366525d6c0333ffb9fd
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=d1f2c95bf6c9e6430efdafcfbc4ac6a5b67ac18a

Log:
- go directly to the correct page rather then hitting the errorhandler first
- fix 'undefined' error on maybe-we-should-skip-these-hits categories

Changed paths:
  M  js/common.js


Diff:
diff --git a/js/common.js b/js/common.js
index 399a615..7d75c9b 100644
--- a/js/common.js
+++ b/js/common.js
@@ -74,7 +74,7 @@ $(document).ready(function() {
                     'phpdoc:exceptionref': 'Exceptions',
                     'refentry': 'Functions'
                 };
-                return indexes[key];
+                return indexes[key] || key;
             }
         });
         $('#headsearch-keywords').catcomplete({
@@ -122,7 +122,7 @@ $(document).ready(function() {
                 event.preventDefault();
                 $('#headsearch-keywords').val(ui.item.label);
                 if (ui.item.value) {
-                    window.location = '/manual/' + getLanguage() + '/' + 
ui.item.value;
+                    window.location = '/manual/' + getLanguage() + '/' + 
ui.item.value + '.php';
                 }
             }
         });


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to