Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Dev Fixed wrong class name for Select2 widgets.
  • Loading branch information
SamMousa committed Feb 3, 2015
1 parent 5704482 commit 5ad40e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/extensions/Menu/MenuWidget.php
Expand Up @@ -484,7 +484,7 @@ protected function renderSelect($item)
{
$htmlOptions['data-route'] = $item['route'];
}
$result .= $this->widget('ext.bootstrap.widgets.TbSelect2', array(
$result .= $this->widget('WhSelect2', array(
'name' => $item['name'],
'value' => $item['value'],
'data' => $listData,
Expand Down
2 changes: 1 addition & 1 deletion application/extensions/SettingsWidget/SettingsWidget.php
Expand Up @@ -412,7 +412,7 @@ public function renderSelect($name, array $metaData, $form = null)
if (isset($metaData['submitonchange']) && $metaData['submitonchange']) {
$properties['events']['change']='js: function(e) { this.form.submit();}';
}
return App()->getController()->widget('ext.bootstrap.widgets.TbSelect2', $properties, true);
return App()->getController()->widget('WhSelect2', $properties, true);
}

public function renderString($name, array $metaData, $form = null)
Expand Down
Expand Up @@ -138,7 +138,7 @@
}
$groups[$questionType['group']][$key] = $questionType['description'];
}
$this->widget('ext.bootstrap.widgets.TbSelect2', array(
$this->widget('WhSelect2', array(
'data' => $groups,
'name' => 'type',
'options' => array(
Expand Down

0 comments on commit 5ad40e2

Please sign in to comment.