svn: /web/php/trunk/js/ common.js
[email protected] (Hannes Magnusson)
| Newsgroups | php.webmaster |
|---|---|
| Message-ID | <[email protected]> |
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;
+ }
}
});
});