]> git.wh0rd.org - tt-rss.git/commitdiff
remove useless view article menu item when in CDM
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 19 Nov 2010 23:06:54 +0000 (02:06 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 19 Nov 2010 23:06:54 +0000 (02:06 +0300)
viewfeed.js

index a23073fac1c87a428e4eea21feb44e8dd0d58a26..bee13f5a76c144a41b0b933989183a7c7f594f83 100644 (file)
@@ -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"),