Public Access
fix: correct trial location preselection after city-only values
- options now use city values (saopaulo) instead of full hostnames - preselect logic extracts city from bestServer.host before matching
This commit is contained in:
1 parent
3d1473a2d5
commit
06ed942f8b
1 file changed
+2
-1
@@ -530,8 +530,9 @@ var si = 0,
|
|||||||
if (bestServer) {
|
if (bestServer) {
|
||||||
[trialLoc, pricingLoc].forEach(function(el) {
|
[trialLoc, pricingLoc].forEach(function(el) {
|
||||||
if (el) {
|
if (el) {
|
||||||
|
var cityVal = bestServer.host.replace('api.', '').replace('.odoo4projects.com', '');
|
||||||
for (var i = 0; i < el.options.length; i++) {
|
for (var i = 0; i < el.options.length; i++) {
|
||||||
if (el.options[i].value === bestServer.host) {
|
if (el.options[i].value === cityVal) {
|
||||||
el.selectedIndex = i;
|
el.selectedIndex = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user