From: Craig Andrews Date: Wed, 17 Feb 2010 15:29:08 +0000 (-0500) Subject: Fix script references in infinite scroll plugin and autocomplete plugin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=389e6d54bfcabd0eb2f6849c914684808aefa53c;p=quix0rs-gnu-social.git Fix script references in infinite scroll plugin and autocomplete plugin Add indicator.gif used by autocomplete plugin --- diff --git a/plugins/Autocomplete/AutocompletePlugin.php b/plugins/Autocomplete/AutocompletePlugin.php index d586631a4a..a28c65a294 100644 --- a/plugins/Autocomplete/AutocompletePlugin.php +++ b/plugins/Autocomplete/AutocompletePlugin.php @@ -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 index 0000000000..d0bce15423 Binary files /dev/null and b/plugins/Autocomplete/jquery-autocomplete/indicator.gif differ diff --git a/plugins/InfiniteScroll/InfiniteScrollPlugin.php b/plugins/InfiniteScroll/InfiniteScrollPlugin.php index a4d1a5d05c..77ad83a51b 100644 --- a/plugins/InfiniteScroll/InfiniteScrollPlugin.php +++ b/plugins/InfiniteScroll/InfiniteScrollPlugin.php @@ -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)