more MSIE compatibility fixes

This commit is contained in:
Andrew Dolgov 2005-09-08 06:02:49 +01:00
parent 397f428bc5
commit 25cb57366a
3 changed files with 12 additions and 5 deletions

View File

@ -120,8 +120,10 @@ function addFilter() {
} else { } else {
notify("Adding filter..."); notify("Adding filter...");
var v_match = match[match.selectedIndex].text;
xmlhttp.open("GET", "backend.php?op=pref-filters&subop=add&regexp=" + 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.onreadystatechange=filterlist_callback;
xmlhttp.send(null); xmlhttp.send(null);
@ -375,7 +377,9 @@ function filterEditSave() {
var regexp = document.getElementById("iedit_regexp").value; var regexp = document.getElementById("iedit_regexp").value;
var descr = document.getElementById("iedit_descr").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); // notify("Saving filter " + filter + ": " + regexp + ", " + descr + ", " + match);
@ -388,7 +392,7 @@ function filterEditSave() {
xmlhttp.open("GET", "backend.php?op=pref-filters&subop=editSave&id=" + xmlhttp.open("GET", "backend.php?op=pref-filters&subop=editSave&id=" +
filter + "&r=" + param_escape(regexp) + "&d=" + param_escape(descr) + 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.onreadystatechange=filterlist_callback;
xmlhttp.send(null); xmlhttp.send(null);

View File

@ -4,6 +4,9 @@
<link rel="stylesheet" href="tt-rss.css" type="text/css"> <link rel="stylesheet" href="tt-rss.css" type="text/css">
<script type="text/javascript" src="functions.js"></script> <script type="text/javascript" src="functions.js"></script>
<script type="text/javascript" src="prefs.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"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head> </head>

View File

@ -168,7 +168,7 @@ function viewfeed(feed, skip, subop) {
var view_mode; var view_mode;
if (viewbox) { if (viewbox) {
view_mode = viewbox.value; view_mode = viewbox[viewbox.selectedIndex].text;
} else { } else {
view_mode = "All Posts"; view_mode = "All Posts";
} }
@ -180,7 +180,7 @@ function viewfeed(feed, skip, subop) {
var limit; var limit;
if (limitbox) { if (limitbox) {
limit = limitbox.value; limit = limitbox[limitbox.selectedIndex].text;
setCookie("ttrss_vf_limit", limit); setCookie("ttrss_vf_limit", limit);
} else { } else {
limit = "All"; limit = "All";