From eb142d1aa6a95421a4f5215463be2b03d05e9b34 Mon Sep 17 00:00:00 2001 From: ODOO4projects Web Developer Date: Mon, 5 Oct 2026 20:37:28 +0000 Subject: [PATCH] fix: location values now return city name only (saopaulo instead of api.saopaulo.odoo4projects.com) --- script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index 21f1fc9..078fb35 100644 --- a/script.js +++ b/script.js @@ -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); });