1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 14:35:58 +00:00

optional support for showing content in an iframe

This commit is contained in:
Andrew Dolgov
2005-09-05 10:09:10 +01:00
parent 7e63d5e429
commit 70830c87c9
6 changed files with 42 additions and 8 deletions

View File

@@ -423,11 +423,16 @@ function view(id,feed_id) {
active_post_id = id;
xmlhttp_view.open("GET", "backend.php?op=view&id=" + param_escape(id), true);
xmlhttp_view.onreadystatechange=view_callback;
xmlhttp_view.send(null);
var content = document.getElementById("content-frame");
if (content) {
content.src = "backend.php?op=view&addheader=true&id=" + param_escape(id);
markHeadline(active_post_id);
} else {
xmlhttp_view.open("GET", "backend.php?op=view&id=" + param_escape(id), true);
xmlhttp_view.onreadystatechange=view_callback;
xmlhttp_view.send(null);
}
}
function timeout() {
@@ -615,4 +620,6 @@ function init() {
updateFeedList(false, false);
document.onkeydown = hotkey_handler;
setTimeout("timeout()", 1800*1000);
var content = document.getElementById("content");
}