Better prefs display
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 12 Jun 2009 19:24:09 +0000 (13:24 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 12 Jun 2009 19:24:09 +0000 (13:24 -0600)
imp/js/src/DimpBase.js
imp/templates/javascript_defs_dimp.php

index a2c7f0b..adab2b3 100644 (file)
@@ -325,12 +325,6 @@ var DimpBase = {
 
         iframe = new Element('IFRAME', { id: 'iframe' + name, className: 'iframe', frameBorder: 0, src: loc });
         this._resizeIE6Iframe(iframe);
-
-        // Hide menu in prefs pages.
-        if (name == 'options') {
-            iframe.observe('load', function() { $('iframeoptions').contentWindow.document.getElementById('menu').style.display = 'none'; });
-        }
-
         container.insert(iframe);
     },
 
index 1fa5356..a45ab0a 100644 (file)
@@ -48,7 +48,7 @@ $code['conf'] = array_filter(array(
     'URI_DIMP' => Horde::applicationUrl('index-dimp.php', true, -1),
     'URI_MESSAGE' => Horde::applicationUrl('message-dimp.php'),
     'URI_PREFS' => Horde::url($horde_webroot . '/services/prefs/', true, -1),
-    'URI_PREFS_IMP' => str_replace('&amp;', '&', Horde::getServiceLink('options', 'imp')),
+    'URI_PREFS_IMP' => str_replace('&amp;', '&', Horde_Util::addParameter(Horde::getServiceLink('options', 'imp'), array('nomenu' => 1))),
     'URI_TIMEOUT' => Auth::addLogoutParameters($horde_webroot . '/login.php', AUTH_REASON_SESSION),
     'URI_VIEW' => Horde::applicationUrl('view.php', true, -1),