From 8d388f321b22691246393e3f812d42ab388c8c42 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 24 Apr 2013 19:49:37 +0400 Subject: add a simple JS-based hook host --- js/feedlist.js | 1 + 1 file changed, 1 insertion(+) (limited to 'js/feedlist.js') diff --git a/js/feedlist.js b/js/feedlist.js index f4e07517e..2c1acc310 100644 --- a/js/feedlist.js +++ b/js/feedlist.js @@ -139,6 +139,7 @@ function viewfeed(feed, method, is_cat, offset, background, infscroll_req) { onComplete: function(transport) { setFeedExpandoIcon(feed, is_cat, 'images/blank_icon.gif'); headlines_callback2(transport, offset, background, infscroll_req); + PluginHost.run(PluginHost.HOOK_FEED_LOADED, [feed, is_cat]); } }); } catch (e) { -- cgit v1.2.3-54-g00ecf From ea18cceaca2fb7562f07a78248fcc15469413629 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 2 May 2013 09:48:38 +0400 Subject: remove splash before freshfeed is loaded --- js/feedlist.js | 2 ++ js/tt-rss.js | 4 ++-- js/viewfeed.js | 2 -- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'js/feedlist.js') diff --git a/js/feedlist.js b/js/feedlist.js index 2c1acc310..932297be8 100644 --- a/js/feedlist.js +++ b/js/feedlist.js @@ -151,6 +151,8 @@ function feedlist_init() { try { console.log("in feedlist init"); + loading_set_progress(50); + document.onkeydown = hotkey_handler; setTimeout("hotkey_prefix_timeout()", 5*1000); diff --git a/js/tt-rss.js b/js/tt-rss.js index c6c0c13dd..577922948 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -249,7 +249,7 @@ function init() { if (!genericSanityCheck()) return false; - loading_set_progress(20); + loading_set_progress(30); var a = document.createElement('audio'); @@ -573,7 +573,7 @@ function init_second_stage() { setActiveFeedId(hash_feed_id, hash_feed_is_cat); } - loading_set_progress(30); + loading_set_progress(50); // can't use cache_clear() here because viewfeed might not have initialized yet if ('sessionStorage' in window && window['sessionStorage'] !== null) diff --git a/js/viewfeed.js b/js/viewfeed.js index ada225cbf..3e78f4ca9 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -20,8 +20,6 @@ function headlines_callback2(transport, offset, background, infscroll_req) { try { handle_rpc_json(transport); - loading_set_progress(25); - console.log("headlines_callback2 [offset=" + offset + "] B:" + background + " I:" + infscroll_req); var is_cat = false; -- cgit v1.2.3-54-g00ecf