Pager: use native javascript to populate & set the goto select. See #711

This commit is contained in:
Mottie 2014-08-25 20:27:40 -05:00
parent 346d8cb64b
commit 7747fa9700
2 changed files with 4 additions and 2 deletions

View File

@ -189,7 +189,8 @@
for ( i = 1; i <= pg; i++ ) {
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
$out.find('.ts-startRow, .ts-page').unbind('change').bind('change', function(){

View File

@ -407,7 +407,8 @@ tsp = ts.pager = {
for ( i = 1; i <= pg; i++ ) {
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
$out.find('.ts-startRow, .ts-page').unbind('change').bind('change', function(){