L’oggetto in questo è Company
la view ‘update’ esegue questo
<?php echo $this->renderPartial('_form', array('model'=>$model, 'companyLegalRep'=>$companyLegalRep, 'companyMainLocation'=>$companyMainLocation )); ?>
_form esegue questo
$this->widget('zii.widgets.jui.CJuiTabs', array(
'tabs'=>array(
Yii::t('company','Dati generali') => array('content' => $this->renderPartial('_formCompany', array('model'=>$model, 'companyMainLocation' => $companyMainLocation, 'companyLegalRep'=> $companyLegalRep), true ), ),
Yii::t('company','Contatti') => array('content' => $this->renderPartial('_formContact', array('model'=>$model), true ), 'id' => 'contactTab', ),
Yii::t('company','Sedi') => array( 'content' => $this->renderPartial('_viewLocation', array('model'=>$model), true ) , 'id' => 'locationTab', ),
Yii::t('company','Relazioni') => array( 'content' => $this->renderPartial('_formRelation', array('model'=>$model), true ), 'id' => 'relationTab', ),
Yii::t('company','Categorie') => array( 'content' => $this->renderPartial('_formCategory', array('model'=>$model), true ), ),
) ) );
il problema sta dentro a _formContact.php, dove c’è un registerScript che NON viene fatto.
Nell’HTML finale (guardandolo con Firefox/WebDeveloper/Sorgente Generato) NON c’è traccia del javascript (che invece dovrebbe trovarsi in fondo al file nell’ultimo tag script se non erro).
A cosa potrebbe essere dovuto ?
Tutte le altre tab hanno gli script correttamente registrati