]> git.wh0rd.org Git - tt-rss.git/commitdiff
MSIE5 compatibility workarounds (2)
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 25 Aug 2005 15:26:33 +0000 (16:26 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 25 Aug 2005 15:26:33 +0000 (16:26 +0100)
prefs.js
prefs.php

index 3296ee665da8266df5979ea93a08478336a2e4fc..b6270a6df48e22b496330af0a3c559453c6b0ecb 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -275,7 +275,20 @@ function localPiggieFunction(enable) {
 }
 
 function init() {
-       
+
+       // IE kludge
+
+       if (xmlhttp && !xmlhttp_rpc) {
+               xmlhttp_rpc = xmlhttp;
+       }
+
+       if (!xmlhttp || !xmlhttp_rpc) {
+               document.getElementById("prefContent").innerHTML = 
+                       "<b>Fatal error:</b> This program needs XmlHttpRequest " + 
+                       "to function properly. Your browser doesn't seem to support it.";
+               return;
+       }
+
        updateFeedList();
        document.onkeydown = hotkey_handler;
        notify("");
index 56624b6f03a3108421764fc18c33ca1096efc6b5..d9c21953f69ad56ca28bab2e2b66f7900ba75f0c 100644 (file)
--- a/prefs.php
+++ b/prefs.php
@@ -27,7 +27,7 @@
        </td>
 </tr>
 </tr>
-       <td class="prefContent" valign="top" colspan="2">
+       <td id="prefContent" class="prefContent" valign="top" colspan="2">
                <h2>Feed Configuration</h2>
 
 <!--