From c0e5a40e7307d06eb9926d2645899e9699be54bc Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 25 Aug 2005 16:15:27 +0100 Subject: MSIE5 compatibility workarounds --- prefs.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'prefs.js') diff --git a/prefs.js b/prefs.js index a9701dd32..3296ee665 100644 --- a/prefs.js +++ b/prefs.js @@ -42,7 +42,7 @@ function notify_callback() { function updateFeedList() { - if (xmlhttp.readyState != 4 && xmlhttp.readyState != 0) { + if (!xmlhttp_ready(xmlhttp)) { printLockingError(); return } @@ -71,7 +71,7 @@ function toggleSelectRow(sender) { function addFeed() { - if (xmlhttp.readyState != 4 && xmlhttp.readyState != 0) { + if (!xmlhttp_ready(xmlhttp)) { printLockingError(); return } @@ -98,7 +98,7 @@ function editFeed(feed) { // notify("Editing feed..."); - if (xmlhttp.readyState != 4 && xmlhttp.readyState != 0) { + if (!xmlhttp_ready(xmlhttp)) { printLockingError(); return } @@ -128,7 +128,7 @@ function getSelectedFeeds() { function readSelectedFeeds() { - if (xmlhttp.readyState != 4 && xmlhttp.readyState != 0) { + if (!xmlhttp_ready(xmlhttp)) { printLockingError(); return } @@ -153,7 +153,7 @@ function readSelectedFeeds() { function unreadSelectedFeeds() { - if (xmlhttp.readyState != 4 && xmlhttp.readyState != 0) { + if (!xmlhttp_ready(xmlhttp)) { printLockingError(); return } @@ -178,7 +178,7 @@ function unreadSelectedFeeds() { function removeSelectedFeeds() { - if (xmlhttp.readyState != 4 && xmlhttp.readyState != 0) { + if (!xmlhttp_ready(xmlhttp)) { printLockingError(); return } @@ -204,7 +204,7 @@ function removeSelectedFeeds() { function feedEditCancel() { - if (xmlhttp.readyState != 4 && xmlhttp.readyState != 0) { + if (!xmlhttp_ready(xmlhttp)) { printLockingError(); return } @@ -219,7 +219,7 @@ function feedEditCancel() { function feedEditSave(feed) { - if (xmlhttp.readyState != 4 && xmlhttp.readyState != 0) { + if (!xmlhttp_ready(xmlhttp)) { printLockingError(); return } -- cgit v1.2.3