mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 03:55:56 +00:00
* OPML import: don't reload everything, just feed tree
* dialogs: use auto-destroying dialog for almost all dialogs instead of destroying them manually * some general dialog-related cleanup
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
/* global Plugins, Headlines, fox, __ */
|
||||
|
||||
Plugins.Mailto = {
|
||||
send: function (id) {
|
||||
if (!id) {
|
||||
@@ -11,12 +13,9 @@ Plugins.Mailto = {
|
||||
id = ids.toString();
|
||||
}
|
||||
|
||||
if (dijit.byId("emailArticleDlg"))
|
||||
dijit.byId("emailArticleDlg").destroyRecursive();
|
||||
|
||||
const query = "backend.php?op=pluginhandler&plugin=mailto&method=emailArticle¶m=" + encodeURIComponent(id);
|
||||
|
||||
const dialog = new dijit.Dialog({
|
||||
const dialog = new fox.SingleUseDialog({
|
||||
id: "emailArticleDlg",
|
||||
title: __("Forward article by email"),
|
||||
href: query});
|
||||
@@ -30,4 +29,4 @@ Plugins.Mail = Plugins.Mail || {};
|
||||
|
||||
Plugins.Mail.onHotkey = function(id) {
|
||||
Plugins.Mailto.send(id);
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user