From: Andrew Dolgov Date: Fri, 19 Nov 2010 23:06:54 +0000 (+0300) Subject: remove useless view article menu item when in CDM X-Git-Tag: 1.5.0~121 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e5d9c770520d436d34c45a49e57806a77396c915;p=tt-rss.git remove useless view article menu item when in CDM --- diff --git a/viewfeed.js b/viewfeed.js index a23073fa..bee13f5a 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -2260,11 +2260,12 @@ function initHeadlinesMenu() { }); - menu.addChild(new dijit.MenuItem({ - label: __("View article"), - onClick: function(event) { - view(this.getParent().callerRowId); - }})); + if (!isCdmMode()) + menu.addChild(new dijit.MenuItem({ + label: __("View article"), + onClick: function(event) { + view(this.getParent().callerRowId); + }})); menu.addChild(new dijit.MenuItem({ label: __("View in a new tab"),