summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/prefs.js b/prefs.js
index 2c10a2dbc..da8a4c3e2 100644
--- a/prefs.js
+++ b/prefs.js
@@ -1537,4 +1537,8 @@ function pref_hotkey_handler(e) {
}
}
-
+function userSwitch() {
+ var chooser = document.getElementById("userSwitch");
+ var user = chooser[chooser.selectedIndex].value;
+ window.location = "prefs.php?swu=" + user;
+}