I detected and modify in framework, but could not understand why.
yii\framework\web\js\packages.php:
From
'js'=>array(YII_DEBUG ? 'jquery.js' : 'jquery.min.js'),
to
'js'=>array('jquery.js'),
Posted 16 May 2013 - 01:43 AM
yii\framework\web\js\packages.php:
From
'js'=>array(YII_DEBUG ? 'jquery.js' : 'jquery.min.js'),
to
'js'=>array('jquery.js'),
Posted 16 May 2013 - 02:54 AM
jquery.min.jsin your
clientScriptconfig or in the controller that renders the view with the
CJuiDialog?
Posted 16 May 2013 - 08:32 PM
1.Open Dialog
Before render, in Controller:
//I don't understand, but to update gridview after close dialog.
Yii::app()->clientscript->scriptMap['jquery.js'] = false;
Yii::app()->clientscript->scriptMap['jquery-ui.min.js'] = false;
3.Update GridView
View:
$("#bp_group_grid").yiiGridView.update("bp_group_grid");
Posted 17 May 2013 - 02:03 AM
Yii::app()->clientscript->scriptMap['jquery.min.js'] = false;
Posted 19 May 2013 - 08:44 PM
if (Yii::app()->request->isAjaxRequest)
{
if (YII_DEBUG)
{
Yii::app()->clientscript->scriptMap['jquery.js'] = false;
}
else
{
Yii::app()->clientscript->scriptMap['jquery.min.js'] = false;
}
}