diff options
author | Andrew Dolgov <[email protected]> | 2005-11-16 18:53:50 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-11-16 18:53:50 +0100 |
commit | 4255b24ccfe9cb813b82df0e150b141d60712593 (patch) | |
tree | e80cd9b767a6cb3f818d2e1bee729d3795cedc98 /prefs.js | |
parent | 4668523d7ceb98d033c6602f6b0d1540f1e49103 (diff) |
add preferences tab
Diffstat (limited to 'prefs.js')
-rw-r--r-- | prefs.js | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -94,6 +94,19 @@ function labellist_callback() { p_notify(""); } } + +function prefslist_callback() { + var container = document.getElementById('prefContent'); + if (xmlhttp.readyState == 4) { + + container.innerHTML=xmlhttp.responseText; + + p_notify(""); + } +} + + + function notify_callback() { var container = document.getElementById('notify'); if (xmlhttp.readyState == 4) { @@ -708,6 +721,21 @@ function updateLabelList() { xmlhttp.send(null); } +function updatePrefsList() { + + if (!xmlhttp_ready(xmlhttp)) { + printLockingError(); + return + } + + p_notify("Loading, please wait..."); + + xmlhttp.open("GET", "backend.php?op=pref-prefs", true); + xmlhttp.onreadystatechange=prefslist_callback; + xmlhttp.send(null); + +} + function selectTab(id) { if (id == "feedConfig") { @@ -716,6 +744,8 @@ function selectTab(id) { updateFilterList(); } else if (id == "labelConfig") { updateLabelList(); + } else if (id == "genConfig") { + updatePrefsList(); } var tab = document.getElementById(active_tab + "Tab"); |