diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-08-05 19:54:46 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-08-05 19:54:46 -0400 |
commit | 9a9195ecd8eea36943dbb5e46adf685aef9edc4e (patch) | |
tree | cfb3410f1d894c07722b3c71d313892d36523b2e /plugins | |
parent | 304db1d30b4ad96f8a2ca500d224bb1609588fed (diff) |
Used script() function to write out the javascript link
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/InfiniteScroll/InfiniteScrollPlugin.php | 6 |
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"> |