diff options
| author | Andrew Dolgov <fox@bah.spb.su> | 2005-11-27 20:29:44 +0100 |
|---|---|---|
| committer | Andrew Dolgov <fox@bah.spb.su> | 2005-11-27 20:29:44 +0100 |
| commit | 3866b046f84bf0e03f3cf3328757d237e4c589ba (patch) | |
| tree | 827cc2277845125416eb2cdeb78d11d97353895b /functions.js | |
| parent | 7c888fd9a7f2197de2d9f67bcc675fd1bb8402b8 (diff) | |
api: openExternalUrl(); more checks in all_counters_callback
Diffstat (limited to 'functions.js')
| -rw-r--r-- | functions.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/functions.js b/functions.js index d3886437b..3aef7befa 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); +} |