- Always display the number of elements (and the number of elements selected) when displaying a list.

- Nicer display of paginated lists

SVN:trunk[1355]
This commit is contained in:
Denis Flaven
2011-07-25 12:23:40 +00:00
parent 0c539aada9
commit 906abd5fe6

View File

@@ -276,6 +276,8 @@ function sprintf(format, etc) {
if (e > nb) if (e > nb)
{ {
e = nb; e = nb;
s = e - 5;
if (s < 0) s = 0;
} }
txt = ''; txt = '';
for(var i=s; i<e; i++) for(var i=s; i<e; i++)
@@ -286,6 +288,10 @@ function sprintf(format, etc) {
{ {
link = ' <a href="#" class="no-arrow" page="'+i+'" id="gotopage_'+i+'">'+page+'</a> '; link = ' <a href="#" class="no-arrow" page="'+i+'" id="gotopage_'+i+'">'+page+'</a> ';
} }
else
{
link = ' <a href="#" class="no-arrow curr_page" page="'+i+'">'+page+'</a> ';
}
txt += link; txt += link;
} }
txt += ''; txt += '';