Switching languages now works again
[citadel.git] / webcit / static / wclib.js
index 711bbf52060234364254cec26df420344f227072..bb193c7b2b5f04d468ac085b35dbb00472e612ba 100644 (file)
@@ -876,3 +876,10 @@ function ConfirmLogoff() {
                 }
         );
 }
+
+
+function switch_to_lang(new_lang) {
+        p = 'push?url=' + encodeURI(window.location);
+        new Ajax.Request(p, { method: 'get' } );
+       window.location = 'switch_language?lang=' + new_lang ;
+}