summaryrefslogtreecommitdiff
path: root/js/CommonDialogs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-12 19:17:50 +0300
committerAndrew Dolgov <[email protected]>2021-02-12 19:17:50 +0300
commit157675d9fda01e399804aad73388fba57927c6df (patch)
treea613999b2eea39c81344b7cd31136a5439c1054a /js/CommonDialogs.js
parent7f0800537e8268dcbc4fce19f38fcbaa3d78a1cd (diff)
prefs: fix published shared URL dialog
Diffstat (limited to 'js/CommonDialogs.js')
-rw-r--r--js/CommonDialogs.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/js/CommonDialogs.js b/js/CommonDialogs.js
index 038a2981d..18250bbb8 100644
--- a/js/CommonDialogs.js
+++ b/js/CommonDialogs.js
@@ -387,17 +387,19 @@ const CommonDialogs = {
Notify.close();
} catch (e) {
- this.Error.report(e);
+ App.Error.report(e);
}
});
},
- generatedFeed: function(feed, is_cat, rss_url) {
+ generatedFeed: function(feed, is_cat, rss_url, feed_title) {
Notify.progress("Loading, please wait...", true);
xhrJson("backend.php", {op: "pref-feeds", method: "getFeedKey", id: feed, is_cat: is_cat}, (reply) => {
try {
- const feed_title = Feeds.getName(feed, is_cat);
+ if (!feed_title && typeof Feeds != "undefined")
+ feed_title = Feeds.getName(feed, is_cat);
+
const secret_url = rss_url + "&key=" + encodeURIComponent(reply.link);
const dialog = new fox.SingleUseDialog({
@@ -428,7 +430,7 @@ const CommonDialogs = {
Notify.close();
} catch (e) {
- this.Error.report(e);
+ App.Error.report(e);
}
});
},