File: Pagination.tt

package info (click to toggle)
otrs2 5.0.16-1%2Bdeb9u6
  • links: PTS
  • area: non-free
  • in suites: stretch
  • size: 141,108 kB
  • sloc: perl: 746,356; xml: 54,469; sql: 10,505; sh: 430; makefile: 64
file content (85 lines) | stat: -rw-r--r-- 4,280 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# --
# Copyright (C) 2001-2017 OTRS AG, http://otrs.com/
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --
[% RenderBlockStart("PageBack") %]
<a id="[% Data.IDPrefix %]PageAllBack" href="[% Data.BaselinkAllBack %]" title="[% Translate("Show first page") | html %]">|&lt;</a>
<a id="[% Data.IDPrefix %]PageOneBack" href="[% Data.BaselinkAllNext %]" title="[% Translate("Show previous pages") | html %]">&lt;&lt;</a>
[% RenderBlockEnd("PageBack") %]
[% RenderBlockStart("PageBackAjax") %]
<a id="[% Data.IDPrefix %]PageAllBack" href="#" title="[% Translate("Show first page") | html %]">|&lt;</a>
<a id="[% Data.IDPrefix %]PageOneBack" href="#" title="[% Translate("Show previous pages") | html %]">&lt;&lt;</a>
[% WRAPPER JSOnDocumentComplete %]
<script type="text/javascript">//<![CDATA[
    $('#[% Data.IDPrefix %]PageAllBack').unbind('click').bind('click', function(){
        var $Container = $(this).parents('.WidgetSimple');
        $Container.addClass('Loading');
        Core.AJAX.ContentUpdate($('#[% Data.AjaxReplace %]'), '[% Data.BaselinkAllBack %]', function () {
            $Container.removeClass('Loading');
        });
        return false;
    });
    $('#[% Data.IDPrefix %]PageOneBack').unbind('click').bind('click', function(){
        var $Container = $(this).parents('.WidgetSimple');
        $Container.addClass('Loading');
        Core.AJAX.ContentUpdate($('#[% Data.AjaxReplace %]'), '[% Data.BaselinkAllNext %]', function () {
            $Container.removeClass('Loading');
        });
        return false;
    });
//]]></script>
[% END %]
[% RenderBlockEnd("PageBackAjax") %]


[% RenderBlockStart("Page") %]
<a id="[% Data.IDPrefix %]Page[% Data.PageNumber %]" href="[% Data.BaselinkAll %]"[% Data.SelectedPage %] title="[% Translate("Show page %s", Data.PageNumber) | html %]">[% Data.PageNumber %]</a>
[% RenderBlockEnd("Page") %]
[% RenderBlockStart("PageAjax") %]
<a id="[% Data.IDPrefix %]Page[% Data.PageNumber %]" href="#"[% Data.SelectedPage %] title="[% Translate("Show page %s", Data.PageNumber) | html %]">[% Data.PageNumber %]</a>
[% WRAPPER JSOnDocumentComplete %]
<script type="text/javascript">//<![CDATA[
    $('#[% Data.IDPrefix %]Page[% Data.PageNumber %]').unbind('click').bind('click', function(){
        var $Container = $(this).parents('.WidgetSimple');
        $Container.addClass('Loading');
        Core.AJAX.ContentUpdate($('#[% Data.AjaxReplace %]'), '[% Data.BaselinkAll %]', function () {
            $Container.removeClass('Loading');
        });
        return false;
    });
//]]></script>
[% END %]
[% RenderBlockEnd("PageAjax") %]


[% RenderBlockStart("PageForward") %]
<a id="[% Data.IDPrefix %]PageOneForward" href="[% Data.BaselinkAllBack %]" title="[% Translate("Show next pages") | html %]">&gt;&gt;</a>
<a id="[% Data.IDPrefix %]PageAllForward" href="[% Data.BaselinkAllNext %]" title="[% Translate("Show last page") | html %]">&gt;|</a>
[% RenderBlockEnd("PageForward") %]
[% RenderBlockStart("PageForwardAjax") %]
<a id="[% Data.IDPrefix %]PageOneForward" href="#" title="[% Translate("Show next pages") | html %]">&gt;&gt;</a>
<a id="[% Data.IDPrefix %]PageAllForward" href="#" title="[% Translate("Show last page") | html %]">&gt;|</a>
[% WRAPPER JSOnDocumentComplete %]
<script type="text/javascript">//<![CDATA[
    $('#[% Data.IDPrefix %]PageOneForward').unbind('click').bind('click', function(){
        var $Container = $(this).parents('.WidgetSimple');
        $Container.addClass('Loading');
        Core.AJAX.ContentUpdate($('#[% Data.AjaxReplace %]'), '[% Data.BaselinkAllBack %]', function () {
            $Container.removeClass('Loading');
        });
        return false;
    });
    $('#[% Data.IDPrefix %]PageAllForward').unbind('click').bind('click', function(){
        var $Container = $(this).parents('.WidgetSimple');
        $Container.addClass('Loading');
        Core.AJAX.ContentUpdate($('#[% Data.AjaxReplace %]'), '[% Data.BaselinkAllNext %]', function () {
            $Container.removeClass('Loading');
        });
        return false;
    });
//]]></script>
[% END %]
[% RenderBlockEnd("PageForwardAjax") %]