mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.uppweb: language selector IE fix
git-svn-id: svn://ultimatepp.org/upp/trunk@4313 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
5b58dd5b8d
commit
d111c112c3
1 changed files with 7 additions and 4 deletions
|
|
@ -466,6 +466,8 @@ void ExportPage(int i)
|
|||
}
|
||||
}
|
||||
}
|
||||
if(!jslang.IsEmpty())
|
||||
jslang.Trim(jslang.GetCount()-1);
|
||||
if (arrLangs.GetCount() > 0) {
|
||||
for (int i = 0; i < arrLangs.GetCount(); ++i) {
|
||||
if (i == arrLangs.GetCount()-1 && i != 0)
|
||||
|
|
@ -573,12 +575,13 @@ void ExportPage(int i)
|
|||
footer
|
||||
)
|
||||
)
|
||||
) + Htmls("<script>a={"+jslang+"};"
|
||||
"p=window.location.pathname.split(\"/\");p=p[p.length-1];"
|
||||
"s='<select id=\"lang\" onchange=\"window.location=document.getElementById(\\'lang\\').value;\">';"
|
||||
) + Htmls("<script>var a={"+jslang+"};"
|
||||
"var p=window.location.pathname.split(\"/\");p=p[p.length-1];"
|
||||
"var s='<select id=\"lang\" onchange=\"window.location=document.getElementById(\\'lang\\').value;\">';"
|
||||
"for(l in a){if(p==l){d=\" selected=1\"}else{d=\"\"}s+='<option value=\"'+l+'\"'+d+'>'+a[l]+'</option>'}"
|
||||
"s+='</select>';"
|
||||
"document.getElementById('langs').innerHTML=s;"
|
||||
"var d=document.createElement('div');d.innerHTML=s;"
|
||||
"var c=document.getElementById('langs');c.replaceChild(d,c.firstChild);"
|
||||
"document.getElementById('langbox').style.display='block';</script>");
|
||||
|
||||
String topicTitle = tt.GetKey(i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue