]> git.wh0rd.org - tt-rss.git/blobdiff - prefs.js
tweak feed errors notification
[tt-rss.git] / prefs.js
index d9c10d692bf43608f0dc044d0511d9b20ec7290a..6b772b1cddd7b0a035c95ee5a99d2dff536c4568 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -31,20 +31,6 @@ function feedlist_callback() {
                        var container = document.getElementById('prefContent'); 
                        container.innerHTML=xmlhttp.responseText;
                        selectTab("feedConfig", true);
-
-                       if (active_feed_cat) {
-                               var row = document.getElementById("FCATR-" + active_feed_cat);
-                               if (row) {
-                                       if (!row.className.match("Selected")) {
-                                               row.className = row.className + "Selected";
-                                       }               
-                               }
-                               var checkbox = document.getElementById("FCCHK-" + active_feed_cat);
-                               if (checkbox) {
-                                       checkbox.checked = true;
-                               }
-                       }
-
                        notify("");
                } catch (e) {
                        exception_error("feedlist_callback", e);
@@ -1136,6 +1122,11 @@ function selectTab(id, noupdate) {
                        return
                }
 
+               try {
+                       var c = document.getElementById('prefContent'); 
+                       c.scrollTop = 0;
+               } catch (e) { };
+
                if (!noupdate) {
 
                        debug("selectTab: " + id + "(NU: " + noupdate + ")");
@@ -1553,3 +1544,7 @@ function editFeedCats() {
        xmlhttp.onreadystatechange=infobox_callback;
        xmlhttp.send(null);
 }
+
+function showFeedsWithErrors() {
+       displayDlg('feedUpdateErrors');
+}