]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix script references in infinite scroll plugin and autocomplete plugin
authorCraig Andrews <candrews@integralblue.com>
Wed, 17 Feb 2010 15:29:08 +0000 (10:29 -0500)
committerCraig Andrews <candrews@integralblue.com>
Wed, 17 Feb 2010 15:29:08 +0000 (10:29 -0500)
Add indicator.gif used by autocomplete plugin

plugins/Autocomplete/AutocompletePlugin.php
plugins/Autocomplete/jquery-autocomplete/indicator.gif [new file with mode: 0644]
plugins/InfiniteScroll/InfiniteScrollPlugin.php

index d586631a4a09dd4542784c1c7c0c2b239c9b137c..a28c65a2947841545193931fcd822d3f91179466 100644 (file)
@@ -42,8 +42,8 @@ class AutocompletePlugin extends Plugin
 
     function onEndShowScripts($action){
         if (common_logged_in()) {
-            $action->script('plugins/Autocomplete/jquery-autocomplete/jquery.autocomplete.pack.js');
-            $action->script('plugins/Autocomplete/Autocomplete.js');
+            $action->script(common_path('plugins/Autocomplete/jquery-autocomplete/jquery.autocomplete.pack.js'));
+            $action->script(common_path('plugins/Autocomplete/Autocomplete.js'));
         }
     }
 
diff --git a/plugins/Autocomplete/jquery-autocomplete/indicator.gif b/plugins/Autocomplete/jquery-autocomplete/indicator.gif
new file mode 100644 (file)
index 0000000..d0bce15
Binary files /dev/null and b/plugins/Autocomplete/jquery-autocomplete/indicator.gif differ
index a4d1a5d05ce11f05b43d77119a61ac91a4d3ca79..77ad83a51bb8ecfcf1dd1ca512d787eb73cd2f37 100644 (file)
@@ -40,8 +40,8 @@ class InfiniteScrollPlugin extends Plugin
 
     function onEndShowScripts($action)
     {
-        $action->script('plugins/InfiniteScroll/jquery.infinitescroll.js');
-        $action->script('plugins/InfiniteScroll/infinitescroll.js');
+        $action->script(common_path('plugins/InfiniteScroll/jquery.infinitescroll.js'));
+        $action->script(common_path('plugins/InfiniteScroll/infinitescroll.js'));
     }
 
     function onPluginVersion(&$versions)