Show More
Commit Description:
added message hiding for admin in msg console...
Commit Description:
added message hiding for admin in msg console
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@371 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
public/javascripts/site_update.js
| 31 lines
| 829 B
| application/javascript
| JavascriptLexer
|
|
r123 | 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)); | |||
} | |||
} | |||
} | |||
} | |||
} | |||