1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 23:05:55 +00:00

api: openExternalUrl(); more checks in all_counters_callback

This commit is contained in:
Andrew Dolgov
2005-11-27 20:29:44 +01:00
parent 7c888fd9a7
commit 3866b046f8

View File

@@ -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);
}