Fix form widgets

refs #5525
This commit is contained in:
Johannes Meyer 2014-09-05 09:17:09 +02:00
parent 8846f17ae1
commit d021747bde
2 changed files with 5 additions and 4 deletions

View File

@ -119,15 +119,15 @@ class SortBox extends AbstractWidget
'label' => 'Sort By',
'multiOptions' => $this->sortFields,
'style' => 'width: 12em',
'class' => 'autosubmit',
'autosubmit' => true
));
$form->addElement('select', 'dir', array(
'multiOptions' => array(
'asc' => 'Asc',
'desc' => 'Desc',
),
'style' => 'width: 5em',
'class' => 'autosubmit'
'style' => 'width: 5em',
'autosubmit' => true
));
$sort = $form->getElement('sort')->setDecorators(array('ViewHelper'));
$dir = $form->getElement('dir')->setDecorators(array('ViewHelper'));

View File

@ -84,6 +84,7 @@ class TimelineIntervalBox extends AbstractWidget
$form = new Form();
$form->setAttrib('class', 'inline');
$form->setMethod('GET');
$form->setUidDisabled();
$form->setTokenDisabled();
$form->setName($this->name);
$form->addElement(
@ -92,7 +93,7 @@ class TimelineIntervalBox extends AbstractWidget
array(
'label' => 'Timeline Interval',
'multiOptions' => $this->values,
'class' => 'autosubmit'
'autosubmit' => true
)
);