summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-02-27 09:47:20 +0300
committerAndrew Dolgov <[email protected]>2020-02-27 09:47:20 +0300
commit07b27b375f279a7fb9868830ddff35a45d68a514 (patch)
treed2a77613f4884e485f0a371a1ffec636f72357f5
parentb159bbe55dd3af41cbcb633d19a2a0efa744a1fb (diff)
update toggle_embed_original hotkey to invoke readability embed instead of removed embed_original plugin
-rw-r--r--include/functions.php4
-rw-r--r--js/tt-rss.js8
2 files changed, 6 insertions, 6 deletions
diff --git a/include/functions.php b/include/functions.php
index 596c2903c..5405dac6e 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -1053,7 +1053,7 @@
"close_article" => __("Close/collapse article"),
"toggle_expand" => __("Toggle article expansion (combined mode)"),
"toggle_widescreen" => __("Toggle widescreen mode"),
- "toggle_embed_original" => __("Toggle embed original")),
+ "embed_full_text" => __("Get full article text via Readability")),
__("Article selection") => array(
"select_all" => __("Select all articles"),
"select_unread" => __("Select unread"),
@@ -1124,7 +1124,7 @@
"N" => "article_scroll_down",
"P" => "article_scroll_up",
"a W" => "toggle_widescreen",
- "a e" => "toggle_embed_original",
+ "a e" => "embed_full_text",
"e" => "email_article",
"a q" => "close_article",
"a a" => "select_all",
diff --git a/js/tt-rss.js b/js/tt-rss.js
index a3c371edb..73790e295 100644
--- a/js/tt-rss.js
+++ b/js/tt-rss.js
@@ -476,12 +476,12 @@ require(["dojo/_base/kernel",
this.hotkey_actions["collapse_sidebar"] = function () {
Feeds.toggle();
};
- this.hotkey_actions["toggle_embed_original"] = function () {
- if (typeof embedOriginalArticle != "undefined") {
+ this.hotkey_actions["embed_full_text"] = function () {
+ if (typeof Plugins.Af_Readability != "undefined") {
if (Article.getActive())
- embedOriginalArticle(Article.getActive());
+ Plugins.Af_Readability.embed(Article.getActive());
} else {
- alert(__("Please enable embed_original plugin first."));
+ alert(__("Please enable af_readability first."));
}
};
this.hotkey_actions["toggle_widescreen"] = function () {