1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-22 05:51:28 +00:00

display help_text in prefs editor

This commit is contained in:
Andrew Dolgov
2005-11-17 08:10:31 +01:00
parent 36990e3304
commit b189569226
4 changed files with 65 additions and 4 deletions

View File

@@ -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);
} */