Skip to content

Commit

Permalink
Merge branch 'MDL-36934-master' of git://git.luns.net.uk/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Dec 3, 2012
2 parents 552160e + 50d6ad8 commit e9dab87
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/outputrenderers.php
Expand Up @@ -1565,9 +1565,15 @@ protected function render_url_select(url_select $select) {
$output .= html_writer::label($select->label, $select->attributes['id'], false, $select->labelattributes); $output .= html_writer::label($select->label, $select->attributes['id'], false, $select->labelattributes);
} }


$select->attributes['class'] = 'autosubmit'; $classes = array();
if (!$select->showbutton) {
$classes[] = 'autosubmit';
}
if ($select->class) { if ($select->class) {
$select->attributes['class'] .= ' ' . $select->class; $classes[] = $select->class;
}
if (count($classes)) {
$select->attributes['class'] = implode(' ', $classes);
} }


if ($select->helpicon instanceof help_icon) { if ($select->helpicon instanceof help_icon) {
Expand Down

0 comments on commit e9dab87

Please sign in to comment.