diff options
Diffstat (limited to 'feedlist.js')
-rw-r--r-- | feedlist.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/feedlist.js b/feedlist.js index e47567a81..b475b9c55 100644 --- a/feedlist.js +++ b/feedlist.js @@ -232,7 +232,7 @@ function request_counters_real() { parameters: query, onComplete: function(transport) { try { - handle_rpc_reply(transport); + handle_rpc_json(transport); } catch (e) { exception_error("viewfeed/getcounters", e); } @@ -286,13 +286,11 @@ function displayNewContentPrompt(id) { } } -function parse_counters(reply, scheduled_call) { +function parse_counters(elems, scheduled_call) { try { var feeds_found = 0; - var elems = JSON.parse(reply.firstChild.nodeValue); - for (var l = 0; l < elems.length; l++) { var id = elems[l].id @@ -302,7 +300,7 @@ function parse_counters(reply, scheduled_call) { var has_img = elems[l].has_img; var updated = elems[l].updated; var title = elems[l].title; - + if (id == "global-unread") { global_unread = ctr; updateTitle(); |