Im using CTabView to create a 2 tabs UI, but when I
m trying to select a tab, jquery.yiitab.js throws an exception: TypeError: href.indexOf is not a function(jquery.yiitab.js line 30).
My view code is following:
<h3>Add company</h3>
<div class="form">
<?php
$form=$this->beginWidget('CActiveForm', array(
'id' => 'company-form',
'enableAjaxValidation' => false,
));
$this->widget('CTabView', array(
'tabs' => array(
'company' => array(
'title' => 'Edit company',
'view' => '_form',
'data' => array('model' => $model, 'form' => $form),
),
'deps' => array(
'title' => 'Departments',
'content' => 'Static content for the moment',
),
),
'activeTab'=>'company',
'htmlOptions'=>array('style'=>''),
'id'=>'company_tab',
));
?>
<div class="row buttons">
<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
</div>
<?php $this->endWidget(); ?>
</div>