No Display Dialog When Running In Mode Production

With Yii v1.1.13, in mode production, app no display JuiDialog.

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'),

Maybe you are disabling or setting


jquery.min.js

in your


clientScript

config or in the controller that renders the view with the


CJuiDialog

?

With the process: 1.Open Dialog -> 2.Post data & Close Dialog -> 3.Update GridView


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");



Remove your initial change, and add in your controller:


Yii::app()->clientscript->scriptMap['jquery.min.js']        = false; 

Thank

OK with debug and production mode:




if (Yii::app()->request->isAjaxRequest)

{

	if (YII_DEBUG)

	{

		Yii::app()->clientscript->scriptMap['jquery.js']             = false;

	}

	else

	{

		Yii::app()->clientscript->scriptMap['jquery.min.js']         = false;

	}

}