Commit afe32bba authored by Remon Georgy's avatar Remon Georgy

fix bug #1050830: pager prev link don't appear when js is disabled.

parent 495a7bfb
......@@ -28,6 +28,19 @@ function theme_views_infinite_scroll_pager($variables) {
$pager_max = $pager_total[$element];
// End of marker calculations.
$li_previous = theme('pager_previous',
array(
'text' => (isset($tags[1]) ? $tags[1] : t('‹‹')),
'limit' => $limit,
'element' => $element,
'interval' => 1,
'parameters' => $parameters,
)
);
if (empty($li_previous)) {
$li_previous = " ";
}
$li_next = theme('pager_next',
array(
'text' => (isset($tags[3]) ? $tags[3] : t('››')),
......@@ -43,6 +56,10 @@ function theme_views_infinite_scroll_pager($variables) {
if ($pager_total[$element] > 1) {
$items[] = array(
'class' => 'pager-previous',
'data' => $li_previous,
);
$items[] = array(
'class' => array('pager-current'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment