Skip to content

Commit

Permalink
Fix form widgets
Browse files Browse the repository at this point in the history
refs #5525
  • Loading branch information
Johannes Meyer committed Sep 5, 2014
1 parent 8846f17 commit d021747
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions library/Icinga/Web/Widget/SortBox.php
Expand Up @@ -119,15 +119,15 @@ public function render()
'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'));
Expand Down
Expand Up @@ -84,6 +84,7 @@ public function render()
$form = new Form();
$form->setAttrib('class', 'inline');
$form->setMethod('GET');
$form->setUidDisabled();
$form->setTokenDisabled();
$form->setName($this->name);
$form->addElement(
Expand All @@ -92,7 +93,7 @@ public function render()
array(
'label' => 'Timeline Interval',
'multiOptions' => $this->values,
'class' => 'autosubmit'
'autosubmit' => true
)
);

Expand Down

0 comments on commit d021747

Please sign in to comment.