Commit:    3a83f776afffdefb344e72465b2107ae3a218138
Author:    Hannes Magnusson <[email protected]>         Sat, 1 Jan 2011 18:23:14 
+0000
Parents:   982d35f1f07ad59bae3c9ecfc400089ccbae49df
Branches:  master

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

Log:
Do not let the browser fill the field (fixes an annoying second display of the
filename, rather then the search keyword)
And fix CS

Changed paths:
  M  js/common.js


Diff:
diff --git a/js/common.js b/js/common.js
index a19386a..64c95ff 100644
--- a/js/common.js
+++ b/js/common.js
@@ -119,9 +119,11 @@ $(document).ready(function() {
                 return false;
             },
             select: function(event, ui){
+                event.preventDefault();
                 $('#headsearch-keywords').val(ui.item.label);
-                if (ui.item.value)
+                if (ui.item.value) {
                     window.location = '/manual/' + getLanguage() + '/' + 
ui.item.value;
+                }
             }
         });
     });


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

Reply via email to