summaryrefslogtreecommitdiff
path: root/templates/libertypagination.tpl
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-11-22 07:27:19 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-11-22 07:27:19 +0000
commit065390ab852a58a14c6339e90dfb0d7eced2afba (patch)
treed112df21749dc050030bf4b665da4e3755a3a9f4 /templates/libertypagination.tpl
parent300a03c554874c55d3a6861450a7c780e19c89f4 (diff)
downloadliberty-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.tpl26
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}">&laquo;</a>&nbsp;
+ {if $pgnPage gt 1}
+ {if $smarty.request.ajaxid}
+ <a href="javascript:sendRequest( '{$smarty.request.ajaxid}','{$pgnName}={$pgnPage-1}{$pgnVars}' )">&laquo;</a>&nbsp;
+ {else}
+ <a href="{$smarty.server.PHP_SELF}?{$pgnName}={$pgnPage-1}{$pgnVars}">&laquo;</a>&nbsp;
+ {/if}
{else}
- &nbsp;
+ &nbsp;&nbsp;
{/if}
- {tr}Page {$page} of {$numPages}{/tr}
+ {tr}Page {$pgnPage} of {$numPages}{/tr}
- {if $page lt $numPages}
- &nbsp;<a href="{$smarty.server.PHP_SELF}?{$pgnName}={$page+1}{$pgnVars}">&raquo;</a>
+ {if $pgnPage lt $numPages}
+ {if $smarty.request.ajaxid}
+ &nbsp;<a href="javascript:sendRequest( '{$smarty.request.ajaxid}','{$pgnName}={$pgnPage+1}{$pgnVars}' )">&raquo;</a>
+ {else}
+ &nbsp;<a href="{$smarty.server.PHP_SELF}?{$pgnName}={$pgnPage+1}{$pgnVars}">&raquo;</a>
+ {/if}
{else}
- &nbsp;
+ &nbsp;&nbsp;
{/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}&nbsp;
{/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}" />