diff options
author | Bill Marquette <bill.marquette@gmail.com> | 2009-03-14 02:20:09 -0500 |
---|---|---|
committer | Bill Marquette <bill.marquette@gmail.com> | 2009-03-14 02:20:09 -0500 |
commit | bae568ccb5fb418a2d1260a73870e40c3d78d494 (patch) | |
tree | b6a2edd25fbd0488fddd0e10497c4c5e523a43ae /usr | |
parent | 55c63539a784a4339a724a4be0a433bd1659b129 (diff) | |
download | pfsense-bae568ccb5fb418a2d1260a73870e40c3d78d494.zip pfsense-bae568ccb5fb418a2d1260a73870e40c3d78d494.tar.gz |
a little cleaner JS
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/javascript/index/ajax.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/javascript/index/ajax.js b/usr/local/www/javascript/index/ajax.js index 79bd898..5eaa8c5 100644 --- a/usr/local/www/javascript/index/ajax.js +++ b/usr/local/www/javascript/index/ajax.js @@ -11,7 +11,9 @@ function updateMeters() { new Ajax.Request(url, { method: 'get', onSuccess: function(transport) { - stats(transport.responseText); + response = transport.responseText || ""; + if (response != "") + stats(transport.responseText); } }); setTimeout('updateMeters()', update_interval); |