|
|
@ -84,12 +84,14 @@ function generate( params ){ |
|
|
|
admin_fields.push('admin0', 'alpha3'); |
|
|
|
admin_fields.push('admin0', 'alpha3'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var input_regions = params.parsed_input.regions.join(' '); |
|
|
|
if (params.parsed_input.regions) { |
|
|
|
if (admin_fields.length === 4 && input_regions !== params.input) { |
|
|
|
var input_regions = params.parsed_input.regions.join(' '); |
|
|
|
if (params.parsed_input.admin_parts) { |
|
|
|
if (admin_fields.length === 4 && input_regions !== params.input) { |
|
|
|
qb(admin_fields, params.parsed_input.admin_parts); |
|
|
|
if (params.parsed_input.admin_parts) { |
|
|
|
} else { |
|
|
|
qb(admin_fields, params.parsed_input.admin_parts); |
|
|
|
qb(admin_fields, input_regions); |
|
|
|
} else { |
|
|
|
|
|
|
|
qb(admin_fields, input_regions); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|