]> git.wh0rd.org - tt-rss.git/blobdiff - js/prefs.js
remove unused clearTwitterCredentials
[tt-rss.git] / js / prefs.js
index a193e12625817bfb59401cddceea1128bd6ecdd7..7d12e42025a24f192084c288bfa284bdc876bcc6 100644 (file)
@@ -547,7 +547,7 @@ function resetSelectedUserPass() {
                        new Ajax.Request("backend.php", {
                                parameters: query,
                                onComplete: function(transport) {
-                                       notify_info(transport.responseText);
+                                       notify_info(transport.responseText, true);
                                } });
 
                }
@@ -710,11 +710,6 @@ function editSelectedFeeds() {
 
                                                        /* Form.serialize ignores unchecked checkboxes */
 
-                                                       if (!query.match("&rtl_content=") &&
-                                                                       this.getChildByName('rtl_content').attr('disabled') == false) {
-                                                               query = query + "&rtl_content=false";
-                                                       }
-
                                                        if (!query.match("&private=") &&
                                                                        this.getChildByName('private').attr('disabled') == false) {
                                                                query = query + "&private=false";
@@ -727,6 +722,13 @@ function editSelectedFeeds() {
                                                                }
                                                        } catch (e) { }
 
+                                                       try {
+                                                               if (!query.match("&hide_images=") &&
+                                                                               this.getChildByName('hide_images').attr('disabled') == false) {
+                                                                       query = query + "&hide_images=false";
+                                                               }
+                                                       } catch (e) { }
+
                                                        if (!query.match("&include_in_digest=") &&
                                                                        this.getChildByName('include_in_digest').attr('disabled') == false) {
                                                                query = query + "&include_in_digest=false";
@@ -742,11 +744,6 @@ function editSelectedFeeds() {
                                                                query = query + "&mark_unread_on_update=false";
                                                        }
 
-                                                       if (!query.match("&update_on_checksum_change=") &&
-                                                                       this.getChildByName('update_on_checksum_change').attr('disabled') == false) {
-                                                               query = query + "&update_on_checksum_change=false";
-                                                       }
-
                                                        console.log(query);
 
                                                        notify_progress("Saving data...", true);
@@ -1077,13 +1074,13 @@ function pref_hotkey_handler(e) {
                switch (hotkey_action) {
                case "feed_subscribe":
                        quickAddFeed();
-                       return true;
+                       return false;
                case "create_label":
                        addLabel();
-                       return true;
+                       return false;
                case "create_filter":
                        quickAddFilter();
-                       return true;
+                       return false;
                case "help_dialog":
                        //helpDialog("prefs");
                        return false;
@@ -1709,27 +1706,6 @@ function editLabel(id, event) {
        }
 }
 
-function clearTwitterCredentials() {
-       try {
-               var ok = confirm(__("This will clear your stored authentication information for Twitter. Continue?"));
-
-               if (ok) {
-                       notify_progress("Clearing credentials...");
-
-                       var query = "?op=pref-feeds&method=remtwitterinfo";
-
-                       new Ajax.Request("backend.php", {
-                               parameters: query,
-                               onComplete: function(transport) {
-                                       notify_info("Twitter credentials have been cleared.");
-                                       updateFeedList();
-                               } });
-               }
-
-       } catch (e) {
-               exception_error("clearTwitterCredentials", e);
-       }
-}
 
 function customizeCSS() {
        try {