update toggle_embed_original hotkey to invoke readability embed instead of removed embed_original plugin
This commit is contained in:
parent
b159bbe55d
commit
07b27b375f
|
@ -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",
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue