Commits

christiansalazar committed 2623a20

issue 42 - fix - inclusion de CJavaScriptExpression para la generacion de nueva de contraseña.

Comments (0)

Files changed (2)

views/ui/registration.php

 		<?php echo CHtml::ajaxbutton(
 			CrugeTranslator::t("Generar una nueva clave")
 			,Yii::app()->user->ui->ajaxGenerateNewPasswordUrl
-			,array('success'=>'js:fnSuccess','error'=>'js:fnError')
+			,array('success'=>new CJavaScriptExpression('fnSuccess'),
+				'error'=>new CJavaScriptExpression('fnError'))
 		); ?>
 	</div>
 </div>
 </div>
 <?php echo $form->errorSummary($model); ?>
 <?php $this->endWidget(); ?>
-</div>
+</div>

views/ui/usermanagementupdate.php

 			<?php echo CHtml::ajaxbutton(
 				CrugeTranslator::t("Generar una nueva clave")
 				,Yii::app()->user->ui->ajaxGenerateNewPasswordUrl
-				,array('success'=>'js:fnSuccess','error'=>'js:fnError')
+				,array('success'=>new CJavaScriptExpression('fnSuccess'),
+					'error'=>new CJavaScriptExpression('fnError'))
 			); ?>
 		</div>
 	</div>
 </div>
 <?php echo $form->errorSummary($model); ?>
 <?php $this->endWidget(); ?>
-</div>
+</div>