issue #0001391 : Javascript select
This commit is contained in:
parent
7d5fbe5bb9
commit
6aa0875ff5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user