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

View File

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