Open part view popup with browser menubar.
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 18 Nov 2009 18:50:04 +0000 (11:50 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 18 Nov 2009 18:50:04 +0000 (11:50 -0700)
This popup is not a part of the Horde UI but rather a data display. As
such, no reason we should limit user's ability to allow the browser to
manipulate the data as needed (i.e. saving, printing).

imp/lib/Contents.php

index f5d35ea..4484b63 100644 (file)
@@ -813,7 +813,7 @@ class IMP_Contents
             $options['jstext'] = sprintf(_("View %s"), $mime_part->getDescription(true));
         }
 
-        $url = Horde::popupJs(Horde::applicationUrl('view.php'), array('params' => $this->_urlViewParams($mime_part, $actionID, isset($options['params']) ? $options['params'] : array()), 'urlencode' => true)) . 'return false;';
+        $url = Horde::popupJs(Horde::applicationUrl('view.php'), array('menu' => true, 'params' => $this->_urlViewParams($mime_part, $actionID, isset($options['params']) ? $options['params'] : array()), 'urlencode' => true)) . 'return false;';
 
         return empty($options['widget'])
             ? Horde::link('#', $options['jstext'], empty($options['css']) ? null : $options['css'], null, $url) . $text . '</a>'