From 45a6446d87b7bf0482d9c25a18bb046aea27bdeb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 3 Feb 2009 19:38:33 +0300 Subject: [PATCH] add placeholder view_offline() --- feedlist.js | 7 +++++-- viewfeed.js | 19 ++++++++++++++++++- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/feedlist.js b/feedlist.js index 05867d7b..29de567b 100644 --- a/feedlist.js +++ b/feedlist.js @@ -151,6 +151,9 @@ function viewfeed_offline(feed_id, subop, is_cat, subop_param, skip_history, off } } + disableContainerChildren("headlinesToolbar", false); + Form.enable("main_toolbar_form"); + var f = document.getElementById("headlines-frame"); try { if (reply.offset == 0) { @@ -241,8 +244,8 @@ function viewfeed_offline(feed_id, subop, is_cat, subop_param, skip_history, off tmp += ""; - tmp += ""+ rs.fieldByName("title"); diff --git a/viewfeed.js b/viewfeed.js index e8330350..de392103 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -381,11 +381,28 @@ function article_callback2(transport, id, feed_id) { } } +function view_offline(id, feed_id) { + try { + + enableHotkeys(); + showArticleInHeadlines(id); + + render_article("FIXME"); + + return false; + + } catch (e) { + exception_error("view_offline", e); + } +} + function view(id, feed_id, skip_history) { try { debug("loading article: " + id + "/" + feed_id); - + + if (offline_mode) return view_offline(id, feed_id); + var cached_article = cache_find(id); debug("cache check result: " + (cached_article != false)); -- 2.39.5