Revision #12 was created by le_top on Nov 22, 2014, 6:47:42 PM.
The corescript is jquery.ui (not jquery-ui)
Content
[...]
* Call this somewhere in the page generation process (e.g., in the layout).
*
* @param int $timeout Time between checks in seconds.
*/
public static function MonitorSessionJQueryDialog($timeout=2,$showCloseButton=true) {
Yii::app()->clientScript->registerCoreScript('jquery-.ui');
$title=CJavaScript::encode(Yii::t('app','Session Expired'));
$msg=CJavaScript::encode(CHtml::tag('div',array(),Yii::t('app','Your session expired and this page must be reloaded.')));
$btReload=CJavaScript::encode(Yii::t('app','Reload'));
if($showCloseButton) {
$btClose=CJavaScript::encode(Yii::t('app','Close'));