issue #0001391 : Javascript select

This commit is contained in:
Michael RICOIS 2012-11-22 08:41:34 +00:00
parent 7d5fbe5bb9
commit 6aa0875ff5

View File

@ -90,12 +90,12 @@ $('input.autocomplete').autocomplete({
delay:1000,
source: function(request, response) {
var query = request.term;
var type = $('input[name=searchType]:selected').val();
var type = $('select[name=searchType]').val();
switch( type ) {
case 'siren': break;
case 'id': break;
case 'nom':
if ($('input[name=searchCountry]:selected').val()!='') {
if ($('select[name=searchCountry]').val()!='') {
query = query + ',' + $('input[name=searchCountry]:selected').val();
}
break;