From e5d9c770520d436d34c45a49e57806a77396c915 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 20 Nov 2010 02:06:54 +0300 Subject: [PATCH] remove useless view article menu item when in CDM --- viewfeed.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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"), -- 2.39.5