Browse Source

Cosmetic change

tags/2.0.0-beta
Alexander Kochetov 12 years ago
parent
commit
7724b5f5e4
  1. 3
      framework/yii/jui/Tabs.php

3
framework/yii/jui/Tabs.php

@ -104,10 +104,9 @@ class Tabs extends Widget
if (!isset($item['content'])) {
throw new InvalidConfigException("The 'content' option is required.");
}
$id = $this->options['id'] . '-tab' . $n;
$options = ArrayHelper::getValue($item, 'options', array());
if (!isset($options['id'])) {
$options['id'] = $id;
$options['id'] = $this->options['id'] . '-tab' . $n;
}
$contents[] = Html::tag('div', $item['content'], $options);
}

Loading…
Cancel
Save