Fix popup link.
authorJan Schneider <jan@horde.org>
Fri, 16 Oct 2009 12:19:25 +0000 (14:19 +0200)
committerJan Schneider <jan@horde.org>
Fri, 16 Oct 2009 13:42:19 +0000 (15:42 +0200)
nag/templates/list/task_headers.inc

index cfbf96f..99dbf44 100644 (file)
@@ -63,10 +63,11 @@ function doPrefsUpdate(column, sortDown)
   <th id="s<?php echo Nag::SORT_CATEGORY ?>"<?php if ($sortby == Nag::SORT_CATEGORY) echo ' class="' . $sortdirclass . '"' ?> width="10%">
    <?php echo Horde::widget(Horde::applicationUrl(Horde_Util::addParameter($baseurl, 'sortby', Nag::SORT_CATEGORY)), _("Sort by Category"), 'sortlink', '', '', _("Cat_egory")) ?>&nbsp;
    <?php
-   if (Horde_Auth::getAuth() && (!$GLOBALS['prefs']->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')) . '</a>';
+       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')) . '</a>';
    }
    ?>
   </th>