Show More
Commit Description:
update heartbeat...
Commit Description:
update heartbeat
add try-to-login-from-other-ip loggin (by printing to stdout)
(grafted from 0e4c832eeb6325f9747d2def63c511423a3b70d4)
References:
File last commit:
Show/Diff file:
Action:
app/assets/javascripts/site_update.js
| 31 lines
| 829 B
| application/javascript
| JavascriptLexer
|
|
r322 | function updateSiteList() { | |
currentCountry = document.getElementById("site_country_id").value; | |||
sites = siteList[currentCountry]; | |||
siteSelect = document.getElementById("login_site_id"); | |||
old_len = siteSelect.length; | |||
// clear old box | |||
for(i=0; i<old_len; i++) siteSelect.remove(0); | |||
if(currentCountry==0) { | |||
for(i=0; i<allSiteList.length; i++) { | |||
if(allSiteList[i]!=null) { | |||
try { | |||
siteSelect.add(new Option(allSiteList[i],""+i,false,false),null); | |||
} catch(ex) { | |||
siteSelect.add(new Option(allSiteList[i],""+i,false,false)); | |||
} | |||
} | |||
} | |||
} else { | |||
for(i=0; i<sites.length; i++) { | |||
if(sites[i]!=null) { | |||
try { | |||
siteSelect.add(new Option(sites[i],""+i,false,false),null); | |||
} catch(ex) { | |||
siteSelect.add(new Option(sites[i],""+i,false,false)); | |||
} | |||
} | |||
} | |||
} | |||
} | |||