Skip to content

Commit

Permalink
The javascript files of CListView and CGridView are now registered at…
Browse files Browse the repository at this point in the history
… the end of the page
  • Loading branch information
qiang.xue committed Sep 8, 2010
1 parent 3002816 commit 354a39f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Expand Up @@ -5,6 +5,7 @@
Version 1.1.5 to be released
----------------------------
- Enh #1522: The attributes of CDetailView now support the property 'visible' (Y!!)
- Chg: The javascript files of CListView and CGridView are now registered at the end of the page (Qiang)

Version 1.1.4 September 5, 2010
-------------------------------
Expand Down
2 changes: 1 addition & 1 deletion framework/zii/widgets/CListView.php
Expand Up @@ -196,7 +196,7 @@ public function registerClientScript()
$cs=Yii::app()->getClientScript();
$cs->registerCoreScript('jquery');
$cs->registerCoreScript('bbq');
$cs->registerScriptFile($this->baseScriptUrl.'/jquery.yiilistview.js');
$cs->registerScriptFile($this->baseScriptUrl.'/jquery.yiilistview.js',CClientScript::POS_END);
$cs->registerScript(__CLASS__.'#'.$id,"jQuery('#$id').yiiListView($options);");
}

Expand Down
2 changes: 1 addition & 1 deletion framework/zii/widgets/grid/CGridView.php
Expand Up @@ -326,7 +326,7 @@ public function registerClientScript()
$cs=Yii::app()->getClientScript();
$cs->registerCoreScript('jquery');
$cs->registerCoreScript('bbq');
$cs->registerScriptFile($this->baseScriptUrl.'/jquery.yiigridview.js');
$cs->registerScriptFile($this->baseScriptUrl.'/jquery.yiigridview.js',CClientScript::POS_END);
$cs->registerScript(__CLASS__.'#'.$id,"jQuery('#$id').yiiGridView($options);");
}

Expand Down

0 comments on commit 354a39f

Please sign in to comment.