Public Access
fix: location values now return city name only (saopaulo instead of api.saopaulo.odoo4projects.com)
This commit is contained in:
1 parent
4d9becd159
commit
eb142d1aa6
1 file changed
+3
-1
@@ -507,7 +507,9 @@ var si = 0,
|
||||
if (el) {
|
||||
SERVERS.forEach(function(s) {
|
||||
var opt = document.createElement('option');
|
||||
opt.value = s.host;
|
||||
// Extract city from host: api.saopaulo.odoo4projects.com -> saopaulo
|
||||
var cityVal = s.host.replace('api.', '').replace('.odoo4projects.com', '');
|
||||
opt.value = cityVal;
|
||||
opt.textContent = s.city;
|
||||
el.appendChild(opt);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user