From: Andrew Dolgov Date: Thu, 8 Sep 2005 05:02:49 +0000 (+0100) Subject: more MSIE compatibility fixes X-Git-Tag: 1.0.4~28 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=25cb57366a45f8b41ac632553c462e2636a09ed6;p=tt-rss.git more MSIE compatibility fixes --- diff --git a/prefs.js b/prefs.js index d698cd57..d9554217 100644 --- 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®exp=" + - 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); diff --git a/prefs.php b/prefs.php index c90d8b53..106488e9 100644 --- a/prefs.php +++ b/prefs.php @@ -4,6 +4,9 @@ + diff --git a/tt-rss.js b/tt-rss.js index c0ad28e2..234fb363 100644 --- 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";