summaryrefslogtreecommitdiff
path: root/plugins/InfiniteScroll
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/InfiniteScroll')
-rw-r--r--plugins/InfiniteScroll/InfiniteScrollPlugin.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/InfiniteScroll/InfiniteScrollPlugin.php b/plugins/InfiniteScroll/InfiniteScrollPlugin.php
index 6738dc760..7e942550a 100644
--- a/plugins/InfiniteScroll/InfiniteScrollPlugin.php
+++ b/plugins/InfiniteScroll/InfiniteScrollPlugin.php
@@ -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">