var active_feed = false;
var active_filter = false;
-var active_pane = false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
} 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);
var container;
-/* if (active_pane) {
- container = document.getElementById(active_pane);
- container.innerHTML = "<a href=\"javascript:expandPane('" +
- active_pane + "')\">Click to expand...</a>";
- } */
-
container = document.getElementById(id);
if (id == "feedConfPane") {
} else if (id == "filterConfPane") {
updateFilterList();
}
-
- active_pane = id;
}
function init() {