~jfb-tempo-consulting/unifield-web/us-1673

« back to all changes in this revision

Viewing changes to addons/openerp/widgets/templates/pager.mako

  • Committer: jf
  • Date: 2016-06-14 07:50:46 UTC
  • mfrom: (4793.1.1 unifield-web)
  • Revision ID: jfb@tempo-consulting.fr-20160614075046-hqdt442392rvfcwg
Tags: uf2.1-2, uf2.1-2p1
US-1401 [FIX] Pager: don't allow to click on last page if there isn't any next page

lp:~fabien-morin/unifield-web/fm-us-1401

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        % if next:
26
26
        </a>
27
27
        % endif
 
28
        % if next and not approximation:
 
29
        <a href="#last" action="last" relation="${name}" onclick="validate_action(this, pager_action); return false;">
 
30
        % endif
28
31
        % if not approximation:
29
 
        <a href="#last" action="last" relation="${name}" onclick="validate_action(this, pager_action); return false;">
30
32
        <span class="last nav ${' ' if next else ' inactive'}">${_("Last >>")}</span>
 
33
        % endif
 
34
        % if next and not approximation:
31
35
        </a>
32
36
        % endif
33
37
    </p>