summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-08-13 08:50:28 +0100
committerAndrew Dolgov <[email protected]>2008-08-13 08:50:28 +0100
commit338ce36c218220f335546da724deca5f215720d9 (patch)
tree77f47edf39524ce742b731e2b770d09cd587b566 /tt-rss.js
parent074bf20c7fadaa7c2b9bf133110e1025cc2655d2 (diff)
fix break when calling catchupFeedInGroup() in grouped vfeed mode on a feed with a single quote in a name
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js16
1 files changed, 12 insertions, 4 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 870c64028..77c4730ac 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -718,12 +718,20 @@ function catchupCurrentFeed() {
}
}
-function catchupFeedInGroup(id, title) {
+function catchupFeedInGroup(id) {
- var str = __("Mark all articles in %s as read?").replace("%s", title);
+ try {
- if (getInitParam("confirm_feed_catchup") != 1 || confirm(str)) {
- return viewCurrentFeed('MarkAllReadGR:' + id)
+ var title = getFeedName(id);
+
+ var str = __("Mark all articles in %s as read?").replace("%s", title);
+
+ if (getInitParam("confirm_feed_catchup") != 1 || confirm(str)) {
+ return viewCurrentFeed('MarkAllReadGR:' + id)
+ }
+
+ } catch (e) {
+ exception_error("catchupFeedInGroup", e);
}
}