com web/php: Do not let the browser fill the field (fixes an annoying second display of the filename, rather then the search keyword) And fix CS:
js/common.js

From: Date: Sat, 01 Jan 2011 18:23:14 +0000
Subject: com web/php: Do not let the browser fill the field (fixes an annoying second display of the filename, rather then the search keyword) And fix CS:
js/common.js
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-23684@lists.php.net to get a copy of this message
Commit: 3a83f776afffdefb344e72465b2107ae3a218138 Author: Hannes Magnusson <bjori@php.net> 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; + } } }); });

« previous php.webmaster (#23684) next »