]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove dismiss* functions
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 22 Mar 2016 07:28:34 +0000 (10:28 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 22 Mar 2016 07:28:34 +0000 (10:28 +0300)
include/functions2.php
js/tt-rss.js
js/viewfeed.js

index 811c72ee3d5eadc3fc578550d6b8158a882a6a64..f31a619420fc3f6f636caf1c8116d039b1759a89 100644 (file)
@@ -64,8 +64,6 @@
                                "toggle_publ" => __("Toggle published"),
                                "toggle_unread" => __("Toggle unread"),
                                "edit_tags" => __("Edit tags"),
-                               "dismiss_selected" => __("Dismiss selected"),
-                               "dismiss_read" => __("Dismiss read"),
                                "open_in_new_window" => __("Open in new window"),
                                "catchup_below" => __("Mark below as read"),
                                "catchup_above" => __("Mark above as read"),
                                "*s" => "toggle_publ",
                                "u" => "toggle_unread",
                                "*t" => "edit_tags",
-                               "*d" => "dismiss_selected",
-                               "*x" => "dismiss_read",
                                "o" => "open_in_new_window",
                                "c p" => "catchup_below",
                                "c n" => "catchup_above",
index 5261485ae340833b3f089c152e3dc4f9c034fd72..daba8f909c20c3b4dd02c053983a885b670b08a8 100644 (file)
@@ -343,12 +343,6 @@ function init() {
                                        editArticleTags(id);
                                };
                        }
-               hotkey_actions["dismiss_selected"] = function() {
-                               dismissSelectedArticles();
-               };
-               hotkey_actions["dismiss_read"] = function() {
-                               dismissReadArticles();
-               };
                hotkey_actions["open_in_new_window"] = function() {
                                if (getActiveArticleId()) {
                                        openArticleInNewWindow(getActiveArticleId());
@@ -375,8 +369,6 @@ function init() {
                                if (isCdmMode()) {
                                        if (!getInitParam("cdm_expanded")) {
                                                cdmCollapseArticle(false, getActiveArticleId());
-                                       } else {
-                                               dismissArticle(getActiveArticleId());
                                        }
                                } else {
                                        closeArticlePanel();
index bd0e0690be528f96b27a8a4ef168638ba69d3c95..0b37c071fa967df1af88ec35737e400421fb72f0 100755 (executable)
@@ -1631,70 +1631,6 @@ function show_labels_in_headlines(transport) {
        }
 }
 
-function dismissArticles(ids) {
-       try {
-
-               console.log("dismissArticles: " + ids);
-
-               for (var i = 0; i < ids.length; i++) {
-                       var elem = $("RROW-" + ids[i]);
-
-                       new Effect.Fade(elem, {
-                               duration: 0.5, afterFinish: function (obj) {
-                                       Element.remove(obj.element);
-                               }
-                       });
-
-                       if (ids[i] == getActiveArticleId()) {
-                               setActiveArticleId(0);
-                       }
-               }
-
-               selectionToggleUnread(false, false, false, ids);
-
-       } catch (e) {
-               exception_error("dismissArticles", e);
-       }
-
-}
-
-function dismissArticle(id) {
-       try {
-               dismissArticles([id]);
-       } catch (e) {
-               exception_error("dismissArticle", e);
-       }
-}
-
-function dismissSelectedArticles() {
-       try {
-               dismissArticles(getSelectedArticleIds2());
-       } catch (e) {
-               exception_error("dismissSelectedArticles", e);
-       }
-}
-
-function dismissReadArticles() {
-       try {
-               var ids = getLoadedArticleIds();
-               var tmp = [];
-
-               ids.each(function(id) {
-                       var elem = $("RROW-" + id);
-
-                       if (elem && !elem.hasClassName("Unread")) {
-                               tmp.push(id);
-                       }
-
-               });
-
-               dismissArticles(tmp);
-
-       } catch (e) {
-               exception_error("dismissReadArticles", e);
-       }
-}
-
 function cdmClicked(event, id) {
        try {
                //var shift_key = event.shiftKey;