mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Pager: use native javascript to populate & set the goto select. See #711
This commit is contained in:
parent
346d8cb64b
commit
7747fa9700
@ -189,7 +189,8 @@
|
|||||||
for ( i = 1; i <= pg; i++ ) {
|
for ( i = 1; i <= pg; i++ ) {
|
||||||
t += '<option>' + i + '</option>';
|
t += '<option>' + i + '</option>';
|
||||||
}
|
}
|
||||||
p.$goto.html(t).val( p.page + 1 );
|
p.$goto[0].innerHTML = t;
|
||||||
|
p.$goto[0].value = p.page + 1;
|
||||||
}
|
}
|
||||||
// rebind startRow/page inputs
|
// rebind startRow/page inputs
|
||||||
$out.find('.ts-startRow, .ts-page').unbind('change').bind('change', function(){
|
$out.find('.ts-startRow, .ts-page').unbind('change').bind('change', function(){
|
||||||
|
@ -407,7 +407,8 @@ tsp = ts.pager = {
|
|||||||
for ( i = 1; i <= pg; i++ ) {
|
for ( i = 1; i <= pg; i++ ) {
|
||||||
t += '<option>' + i + '</option>';
|
t += '<option>' + i + '</option>';
|
||||||
}
|
}
|
||||||
p.$goto.html(t).val( p.page + 1 );
|
p.$goto[0].innerHTML = t;
|
||||||
|
p.$goto[0].value = p.page + 1;
|
||||||
}
|
}
|
||||||
// rebind startRow/page inputs
|
// rebind startRow/page inputs
|
||||||
$out.find('.ts-startRow, .ts-page').unbind('change').bind('change', function(){
|
$out.find('.ts-startRow, .ts-page').unbind('change').bind('change', function(){
|
||||||
|
Loading…
Reference in New Issue
Block a user