From 6031a4b1533de978c25eb0dfda78b64d7986cd4f Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 18 Nov 2009 11:49:54 -0700 Subject: [PATCH] Add option to open popup window with browser menubar --- framework/Core/lib/Horde.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index 6ae86f85c..ca095d570 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -2235,6 +2235,8 @@ HTML; *
      * 'height' - (integer) The height of the popup window.
      *            DEFAULT: 650 px
+     * 'menu' - (boolean) Show the browser menu in the popup window?
+     *          DEFAULT: false
      * 'params' - (array) Additional parameters to pass to the URL.
      *            DEFAULT: None
      * 'urlencode' - (boolean) URL encode the json string
@@ -2270,6 +2272,9 @@ HTML;
         if (!empty($options['params'])) {
             $params->params = substr(Horde_Util::addParameter('', $options['params'], null, false), 1);
         }
+        if (!empty($options['menu'])) {
+            $params->menu = 1;
+        }
 
         return 'Horde.popup(' . self::escapeJson($params, array('urlencode' => !empty($options['urlencode']))) . ');';
     }
-- 
2.11.0