Used script() function to write out the javascript link

This commit is contained in:
Craig Andrews 2009-08-05 19:54:46 -04:00
parent 304db1d30b
commit 9a9195ecd8
1 changed files with 1 additions and 5 deletions

View File

@ -40,11 +40,7 @@ class InfiniteScrollPlugin extends Plugin
function onEndShowScripts($action)
{
$action->element('script',
array('type' => 'text/javascript',
'src' => common_path('plugins/InfiniteScroll/jquery.infinitescroll.min.js')),
'');
$action->script('plugins/InfiniteScroll/jquery.infinitescroll.min.js');
$loading_image = common_path('plugins/InfiniteScroll/ajax-loader.gif');
$js_string = <<<EOT
<script type="text/javascript">