]> git.wh0rd.org - tt-rss.git/blobdiff - prefs.js
change Starred-feed caption
[tt-rss.git] / prefs.js
index e55f7d4f45d12f2995682fc5a4673d7cb9d1fe23..d95542178cf5eccabc323cdd3de9d5eb33ddd11d 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -7,7 +7,6 @@ var xmlhttp = false;
 
 var active_feed = false;
 var active_filter = false;
-var active_pane = false;
 
 /*@cc_on @*/
 /*@if (@_jscript_version >= 5)
@@ -121,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);
@@ -376,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);
 
@@ -389,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); 
@@ -497,12 +500,6 @@ function expandPane(id) {
 
        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") {
@@ -510,8 +507,6 @@ function expandPane(id) {
        } else if (id == "filterConfPane") {
                updateFilterList();
        }
-
-       active_pane = id;
 }
 
 function init() {