}
}
+ disableContainerChildren("headlinesToolbar", false);
+ Form.enable("main_toolbar_form");
+
var f = document.getElementById("headlines-frame");
try {
if (reply.offset == 0) {
tmp += "<td onclick='view("+id+","+feed_id+")' "+
"class='hlContent' valign='middle'>";
- tmp += "<a id=\"RTITLE-$id\" href=\"" +
- param_escape(rs.fieldByName("link")) + "\"" +
+ tmp += "<a target=\"_blank\" id=\"RTITLE-$id\" href=\"" +
+ rs.fieldByName("link") + "\"" +
"onclick=\"return view("+id+","+feed_id+");\">"+
rs.fieldByName("title");
}
}
+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));