diff --git a/classes/feeds.php b/classes/feeds.php index 500c50a74..5c7e8a18f 100755 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -611,9 +611,11 @@ class Feeds extends Handler_Protected { } } + // data-article-id included for context menu $reply['content'] .= " + data-article-id=\"$id\" + class=\"titleWrap hlMenuAttach $hlc_suffix\"> div[id*=RROW]" + - "[data-orig-feed-id='" + menu.callerRowId + "']"); + "[data-orig-feed-id='" + this.getParent().currentTarget.getAttribute("data-feed-id") + "']"); } })); @@ -2048,7 +2010,7 @@ function initHeadlinesMenu() { selectArticles("none"); selectArticles("all", "#headlines-frame > div[id*=RROW]" + - "[data-orig-feed-id='" + menu.callerRowId + "']"); + "[data-orig-feed-id='" + this.getParent().currentTarget.getAttribute("data-feed-id") + "']"); catchupSelection(); } @@ -2057,14 +2019,14 @@ function initHeadlinesMenu() { menu.addChild(new dijit.MenuItem({ label: __("Mark feed as read"), onClick: function (event) { - catchupFeedInGroup(menu.callerRowId); + catchupFeedInGroup(this.getParent().currentTarget.getAttribute("data-feed-id")); } })); menu.addChild(new dijit.MenuItem({ label: __("Edit feed"), onClick: function (event) { - editFeed(menu.callerRowId); + editFeed(this.getParent().currentTarget.getAttribute("data-feed-id")); } }));