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) {
|
if (el) {
|
||||||
SERVERS.forEach(function(s) {
|
SERVERS.forEach(function(s) {
|
||||||
var opt = document.createElement('option');
|
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;
|
opt.textContent = s.city;
|
||||||
el.appendChild(opt);
|
el.appendChild(opt);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user