From: Andrew Dolgov Date: Sun, 27 Nov 2005 19:29:44 +0000 (+0100) Subject: api: openExternalUrl(); more checks in all_counters_callback X-Git-Tag: schema_feature_freeze_for_1.1~56 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3866b046f84bf0e03f3cf3328757d237e4c589ba;p=tt-rss.git api: openExternalUrl(); more checks in all_counters_callback --- diff --git a/functions.js b/functions.js index d3886437..3aef7bef 100644 --- a/functions.js +++ b/functions.js @@ -343,7 +343,7 @@ if (!xmlhttp_rpc && typeof XMLHttpRequest!='undefined') { function all_counters_callback() { if (xmlhttp_rpc.readyState == 4) { try { - if (!xmlhttp_rpc.responseXML) { + if (!xmlhttp_rpc.responseXML || !xmlhttp_rpc.responseXML.firstChild) { notify("[all_counters_callback] backend did not return valid XML"); return; } @@ -541,4 +541,7 @@ function toggleSelectRow(sender) { } } +function openExternalUrl(url) { + var w = window.open(url); +}