}
}
-function userdetails_callback() {
- var container = document.getElementById('prefUserDetails');
+function infobox_callback() {
+ var container = document.getElementById('infoBox');
if (xmlhttp.readyState == 4) {
- container.innerHTML=xmlhttp.responseText;
- container.style.display = "block";
+ if (container) {
+ container.innerHTML=xmlhttp.responseText;
+ container.style.display = "block";
+ }
}
}
var id = rows[0];
xmlhttp.open("GET", "backend.php?op=user-details&id=" + id, true);
- xmlhttp.onreadystatechange=userdetails_callback;
+ xmlhttp.onreadystatechange=infobox_callback;
+ xmlhttp.send(null);
+
+}
+
+function selectedFeedDetails() {
+
+ if (!xmlhttp_ready(xmlhttp)) {
+ printLockingError();
+ return
+ }
+
+ var rows = getSelectedFeeds();
+
+ if (rows.length == 0) {
+ notify("No feeds are selected.");
+ return;
+ }
+
+ if (rows.length > 1) {
+ notify("Please select one feed.");
+ return;
+ }
+
+ var id = rows[0];
+
+ xmlhttp.open("GET", "backend.php?op=feed-details&id=" + id, true);
+ xmlhttp.onreadystatechange=infobox_callback;
xmlhttp.send(null);
}
function selectTab(id) {
+ if (!xmlhttp_ready(xmlhttp)) {
+ printLockingError();
+ return
+ }
+
if (id == "feedConfig") {
updateFeedList();
} else if (id == "filterConfig") {
} */
-function closeUserDetails() {
- var d = document.getElementById('prefUserDetails');
+function closeInfoBox() {
+ var d = document.getElementById('infoBox');
d.style.display = "none";
}