]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Used script() function to write out the javascript link
authorCraig Andrews <candrews@integralblue.com>
Wed, 5 Aug 2009 23:54:46 +0000 (19:54 -0400)
committerCraig Andrews <candrews@integralblue.com>
Wed, 5 Aug 2009 23:54:46 +0000 (19:54 -0400)
plugins/InfiniteScroll/InfiniteScrollPlugin.php

index 6738dc7608755c99792b8afc6681660561824d33..7e942550ae29b5fe0263a032bfad6b78358333cf 100644 (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">