FilterEditor: hide "add" links

They where there to show how this should look like. Removed for now as
they are not implemented yet.

refs #6668
This commit is contained in:
Thomas Gelf 2014-07-08 17:21:36 +02:00
parent 2b05aa9504
commit 49c679fe0f
1 changed files with 4 additions and 2 deletions

View File

@ -95,6 +95,8 @@ class FilterEditor extends AbstractWidget
. $view->escape(t('Click to remove this part of your filter'))
. '">' . $view->icon('remove.png') . '</a>';
/*
// Temporarilly removed, not implemented yet
$addUrl = clone($url);
$addUrl->setParam('addToId', $idx);
$addLink = ' <a href="' . $addUrl . '" title="'
@ -103,7 +105,7 @@ class FilterEditor extends AbstractWidget
$addLink .= ' <a href="' . $addUrl . '" title="'
. $view->escape(t('Click to add a filter expression to this operator'))
. '">' . t('Expression') . ' (=, &lt;, &gt;, &lt;=, &gt;=)</a>';
*/
$selectedIndex = ($idx === $this->selectedIdx ? ' -&lt;--' : '');
$selectIndex = ' <a href="' . $markUrl . '">o</a>';
@ -125,7 +127,7 @@ class FilterEditor extends AbstractWidget
),
$filter->getOperatorName(),
array('style' => 'width: 5em')
) . $removeLink . ' ' . t('Add') . ': ' . $addLink;
) . $removeLink; // Disabled: . ' ' . t('Add') . ': ' . $addLink;
$html .= '<span class="handle"> </span>';
if ($level === 0) {