Fix for #3463. Make InfiniteScroll plugin use config['plugins']['server'] if defined to build ajax-loader.gif URL
This commit is contained in:
parent
ac5e29de5a
commit
a7507e3685
@ -41,6 +41,7 @@ class InfiniteScrollPlugin extends Plugin
|
|||||||
function onEndShowScripts($action)
|
function onEndShowScripts($action)
|
||||||
{
|
{
|
||||||
$action->inlineScript('var infinite_scroll_on_next_only = ' . ($this->on_next_only?'true':'false') . ';');
|
$action->inlineScript('var infinite_scroll_on_next_only = ' . ($this->on_next_only?'true':'false') . ';');
|
||||||
|
$action->inlineScript('var ajax_loader_url = "' . ($this->path('ajax-loader.gif')) . '";');
|
||||||
$action->script($this->path('jquery.infinitescroll.js'));
|
$action->script($this->path('jquery.infinitescroll.js'));
|
||||||
$action->script($this->path('infinitescroll.js'));
|
$action->script($this->path('infinitescroll.js'));
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ jQuery(document).ready(function($){
|
|||||||
'body#showfavorites li.nav_next a,'+
|
'body#showfavorites li.nav_next a,'+
|
||||||
'body#showgroup li.nav_next a,'+
|
'body#showgroup li.nav_next a,'+
|
||||||
'body#favorited li.nav_next a',
|
'body#favorited li.nav_next a',
|
||||||
loadingImg : $('address .url')[0].href+'plugins/InfiniteScroll/ajax-loader.gif',
|
loadingImg : ajax_loader_url,
|
||||||
text : "<em>Loading the next set of posts...</em>",
|
text : "<em>Loading the next set of posts...</em>",
|
||||||
donetext : "<em>Congratulations, you\'ve reached the end of the Internet.</em>",
|
donetext : "<em>Congratulations, you\'ve reached the end of the Internet.</em>",
|
||||||
navSelector : "#pagination",
|
navSelector : "#pagination",
|
||||||
|
Loading…
Reference in New Issue
Block a user