]> git.wh0rd.org Git - tt-rss.git/commitdiff
more MSIE compatibility fixes
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 8 Sep 2005 05:02:49 +0000 (06:02 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 8 Sep 2005 05:02:49 +0000 (06:02 +0100)
prefs.js
prefs.php
tt-rss.js

index d698cd57e8c520248e856e1d7f74a90b28e6cbed..d95542178cf5eccabc323cdd3de9d5eb33ddd11d 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -120,8 +120,10 @@ function addFilter() {
        } else {
                notify("Adding filter...");
 
+               var v_match = match[match.selectedIndex].text;
+
                xmlhttp.open("GET", "backend.php?op=pref-filters&subop=add&regexp=" +
-                       param_escape(regexp.value) + "&match=" + match.value, true);                    
+                       param_escape(regexp.value) + "&match=" + v_match, true);                        
                        
                xmlhttp.onreadystatechange=filterlist_callback;
                xmlhttp.send(null);
@@ -375,7 +377,9 @@ function filterEditSave() {
 
        var regexp = document.getElementById("iedit_regexp").value;
        var descr = document.getElementById("iedit_descr").value;
-       var match = document.getElementById("iedit_match").value;
+       var match = document.getElementById("iedit_match");
+
+       var v_match = match[match.selectedIndex].text;
 
 //     notify("Saving filter " + filter + ": " + regexp + ", " + descr + ", " + match);
 
@@ -388,7 +392,7 @@ function filterEditSave() {
 
        xmlhttp.open("GET", "backend.php?op=pref-filters&subop=editSave&id=" +
                filter + "&r=" + param_escape(regexp) + "&d=" + param_escape(descr) +
-               "&m=" + param_escape(match), true);
+               "&m=" + param_escape(v_match), true);
                
        xmlhttp.onreadystatechange=filterlist_callback;
        xmlhttp.send(null); 
index c90d8b533a81a785160f87198db4780fe482be62..106488e93d3a4d4b5d69f4edfa4a16c8d5e7fe0b 100644 (file)
--- a/prefs.php
+++ b/prefs.php
@@ -4,6 +4,9 @@
        <link rel="stylesheet" href="tt-rss.css" type="text/css">
        <script type="text/javascript" src="functions.js"></script>
        <script type="text/javascript" src="prefs.js"></script>
+       <!--[if gte IE 5.5000]>
+               <script type="text/javascript" src="pngfix.js"></script>
+       <![endif]-->
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 </head>
 
index c0ad28e2e9f4728ae96e4409dfd372d2bbf40b89..234fb363443901cefa475ce38951b17f8403a341 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -168,7 +168,7 @@ function viewfeed(feed, skip, subop) {
        var view_mode;
 
        if (viewbox) {
-               view_mode = viewbox.value;
+               view_mode = viewbox[viewbox.selectedIndex].text;
        } else {
                view_mode = "All Posts";
        }
@@ -180,7 +180,7 @@ function viewfeed(feed, skip, subop) {
        var limit;
 
        if (limitbox) {
-               limit = limitbox.value;
+               limit = limitbox[limitbox.selectedIndex].text;
                setCookie("ttrss_vf_limit", limit);
        } else {
                limit = "All";