} 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);
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);
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);
<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>
var view_mode;
if (viewbox) {
- view_mode = viewbox.value;
+ view_mode = viewbox[viewbox.selectedIndex].text;
} else {
view_mode = "All Posts";
}
var limit;
if (limitbox) {
- limit = limitbox.value;
+ limit = limitbox[limitbox.selectedIndex].text;
setCookie("ttrss_vf_limit", limit);
} else {
limit = "All";