svn: /web/php/trunk/js/ common.js

From: Date: Sat, 01 Jan 2011 18:23:14 +0000
Subject: svn: /web/php/trunk/js/ common.js
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-10147@lists.php.net to get a copy of this message
bjori Sat, 01 Jan 2011 18:23:14 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=306951 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: U web/php/trunk/js/common.js Modified: web/php/trunk/js/common.js =================================================================== --- web/php/trunk/js/common.js 2011-01-01 17:46:00 UTC (rev 306950) +++ web/php/trunk/js/common.js 2011-01-01 18:23:14 UTC (rev 306951) @@ -119,9 +119,11 @@ 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 (#10147) next »