Allow user to change language without explicitly clicking "Set"
author Chris Han
()
committer Chris Han
()
commit fecde87ff0791fdbd1b2930befd43c2fc3098493
tree 792fb277edc6882b7aaa97934643b82c3f0a3032
parent 7b56ab9d8c993ea97e004a2d5f4eab58da9a0947
Allow user to change language without explicitly clicking "Set"

This uses javascript to submit the form as soon as the user changes the
language selection box, rather than having to also click "Set". It
removes the Set button also. Since this is done in the jQuery ready
event, there is a bit of time while the page is loading where the
onchange won't work and the set button will still be visible, then it'll
"disappear" when the page finishes loading. There's no good way around
that though if we want the page to degrade properly without javascript.
js/lang.js [ new file with mode 0644 ]
templates/header.tpl
comments