mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-11 18:46:59 +01:00
Shorter syntax (same functionality) for jQuery
This commit is contained in:
@@ -318,7 +318,7 @@ class CClientScript extends CApplicationComponent
|
||||
if(isset($this->scripts[self::POS_READY]))
|
||||
{
|
||||
if($fullPage)
|
||||
$scripts[]="jQuery(document).ready(function($) {\n".implode("\n",$this->scripts[self::POS_READY])."\n});";
|
||||
$scripts[]="jQuery(function($) {\n".implode("\n",$this->scripts[self::POS_READY])."\n});";
|
||||
else
|
||||
$scripts[]=implode("\n",$this->scripts[self::POS_READY]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user