diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2005-11-22 07:27:19 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2005-11-22 07:27:19 +0000 |
| commit | 065390ab852a58a14c6339e90dfb0d7eced2afba (patch) | |
| tree | d112df21749dc050030bf4b665da4e3755a3a9f4 /templates/libertypagination.tpl | |
| parent | 300a03c554874c55d3a6861450a7c780e19c89f4 (diff) | |
| download | liberty-065390ab852a58a14c6339e90dfb0d7eced2afba.tar.gz liberty-065390ab852a58a14c6339e90dfb0d7eced2afba.tar.bz2 liberty-065390ab852a58a14c6339e90dfb0d7eced2afba.zip | |
merge recent changes into HEAD
Diffstat (limited to 'templates/libertypagination.tpl')
| -rw-r--r-- | templates/libertypagination.tpl | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/templates/libertypagination.tpl b/templates/libertypagination.tpl index 5997322..7cc0ec0 100644 --- a/templates/libertypagination.tpl +++ b/templates/libertypagination.tpl @@ -1,28 +1,36 @@ {strip} <div class="pagination"> - {if $page gt 1} - <a href="{$smarty.server.PHP_SELF}?{$pgnName}={$page-1}{$pgnVars}">«</a> + {if $pgnPage gt 1} + {if $smarty.request.ajaxid} + <a href="javascript:sendRequest( '{$smarty.request.ajaxid}','{$pgnName}={$pgnPage-1}{$pgnVars}' )">«</a> + {else} + <a href="{$smarty.server.PHP_SELF}?{$pgnName}={$pgnPage-1}{$pgnVars}">«</a> + {/if} {else} - + {/if} - {tr}Page {$page} of {$numPages}{/tr} + {tr}Page {$pgnPage} of {$numPages}{/tr} - {if $page lt $numPages} - <a href="{$smarty.server.PHP_SELF}?{$pgnName}={$page+1}{$pgnVars}">»</a> + {if $pgnPage lt $numPages} + {if $smarty.request.ajaxid} + <a href="javascript:sendRequest( '{$smarty.request.ajaxid}','{$pgnName}={$pgnPage+1}{$pgnVars}' )">»</a> + {else} + <a href="{$smarty.server.PHP_SELF}?{$pgnName}={$pgnPage+1}{$pgnVars}">»</a> + {/if} {else} - + {/if} <br /> - {if $gBitSystem->isFeatureActive( 'direct_pagination' )} + {* MSIE dies when we use a form in the pagination when doing ajax stuff *} + {if $gBitSystem->isFeatureActive( 'direct_pagination' ) or $smarty.request.ajaxid} {foreach from=$pgnPages item=link} {$link} {/foreach} {else} {form id="fPageSelect"} - <input type="hidden" name="comments_maxComments" value="{$maxComments}" /> <input type="hidden" name="comments_style" value="{$comments_style}" /> <input type="hidden" name="comments_sort_mode" value="{$comments_sort_mode}" /> |
