summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-17 08:10:31 +0100
committerAndrew Dolgov <[email protected]>2005-11-17 08:10:31 +0100
commitb1895692268f3500b473b63d236e0fd1c427972f (patch)
treedb4c3c8911c2cc6cc9a0f2c4183a1206c708f69c /prefs.js
parent36990e3304d7cb30c34cb8b716c224096bf82fa3 (diff)
display help_text in prefs editor
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js33
1 files changed, 33 insertions, 0 deletions
diff --git a/prefs.js b/prefs.js
index a7764758e..3e8b6b181 100644
--- a/prefs.js
+++ b/prefs.js
@@ -105,6 +105,15 @@ function prefslist_callback() {
}
}
+function gethelp_callback() {
+ var container = document.getElementById('prefHelpBox');
+ if (xmlhttp.readyState == 4) {
+
+ container.innerHTML = xmlhttp.responseText;
+ container.style.display = "block";
+
+ }
+}
function notify_callback() {
@@ -785,3 +794,27 @@ function init() {
notify("");
}
+
+/*
+var help_topic_id = false;
+
+function do_dispOptionHelp() {
+
+ if (!xmlhttp_ready(xmlhttp))
+ return;
+
+ xmlhttp.open("GET", "backend.php?op=pref-prefs&subop=getHelp&pn=" +
+ param_escape(help_topic_id), true);
+ xmlhttp.onreadystatechange=gethelp_callback;
+ xmlhttp.send(null);
+
+}
+
+function dispOptionHelp(event, sender) {
+
+ help_topic_id = sender.id;
+
+// document.setTimeout("do_dispOptionHelp()", 100);
+
+} */
+