From: Jan Schneider Date: Fri, 16 Oct 2009 12:19:25 +0000 (+0200) Subject: Fix popup link. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6e68533fec22941562d16f6651199767bb148fa7;p=horde.git Fix popup link. --- diff --git a/nag/templates/list/task_headers.inc b/nag/templates/list/task_headers.inc index cfbf96f64..99dbf44b1 100644 --- a/nag/templates/list/task_headers.inc +++ b/nag/templates/list/task_headers.inc @@ -63,10 +63,11 @@ function doPrefsUpdate(column, sortDown) width="10%">   isLocked('categories') || - !$GLOBALS['prefs']->isLocked('category_colors'))) { + if (Horde_Auth::getAuth() && + (!$GLOBALS['prefs']->isLocked('categories') || + !$GLOBALS['prefs']->isLocked('category_colors'))) { $categoryUrl = Horde_Util::addParameter(Horde::getServiceLink('options', 'horde'), array('group' => 'categories')); - echo ' ' . Horde::link($categoryUrl, _("Edit categories and colors"), '', '_blank', Horde::popupJs($categoryUrl, array('urlencode' => true)) . 'return false;') . Horde::img('colorpicker.png', _("Edit categories and colors"), '', $GLOBALS['registry']->getImageDir('horde')) . ''; + echo ' ' . Horde::link($categoryUrl, _("Edit categories and colors"), '', '_blank', 'Horde.popup({url:this.href}); return false;') . Horde::img('colorpicker.png', _("Edit categories and colors"), '', $GLOBALS['registry']->getImageDir('horde')) . ''; } ?>