summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-04-23 14:45:24 +0100
committerAndrew Dolgov <[email protected]>2007-04-23 14:45:24 +0100
commit23943c9b7e6d1b49e269991752272052c4e88721 (patch)
treeb07f00058be85fdb756dfa227ed6f74e69082852
parent4bbc659591e32e197c148e3aa68b9996255a330c (diff)
do not call correctPNG() when undefined
-rw-r--r--prefs.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/prefs.js b/prefs.js
index ab8953bd4..60a7e1b17 100644
--- a/prefs.js
+++ b/prefs.js
@@ -42,7 +42,9 @@ function feedlist_callback() {
caller_subop = false;
}
- correctPNG();
+ if (typeof correctPNG != 'undefined') {
+ correctPNG();
+ }
notify("");
} catch (e) {
exception_error("feedlist_callback", e);
@@ -54,7 +56,9 @@ function filterlist_callback() {
var container = document.getElementById('prefContent');
if (xmlhttp.readyState == 4) {
container.innerHTML=xmlhttp.responseText;
- correctPNG();
+ if (typeof correctPNG != 'undefined') {
+ correctPNG();
+ }
notify("");
}
}
@@ -77,7 +81,9 @@ function labellist_callback() {
checkbox.checked = true;
}
}
- correctPNG();
+ if (typeof correctPNG != 'undefined') {
+ correctPNG();
+ }
notify("");
}
}