mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Pager: IE requires a value attribute for every option. Fixes #734
This commit is contained in:
parent
7a1a90232b
commit
655b2c9277
@ -188,7 +188,10 @@
|
|||||||
if ($out.length) {
|
if ($out.length) {
|
||||||
$out[ ($out[0].tagName === 'INPUT') ? 'val' : 'html' ](s);
|
$out[ ($out[0].tagName === 'INPUT') ? 'val' : 'html' ](s);
|
||||||
if ( p.$goto.length ) {
|
if ( p.$goto.length ) {
|
||||||
t = '<option>' + buildPageSelect(p).join('</option><option>') + '</option>';
|
t = '';
|
||||||
|
$.each(buildPageSelect(p), function(i, opt){
|
||||||
|
t += '<option value="' + opt + '">' + opt + '</option>';
|
||||||
|
});
|
||||||
p.$goto.each(function(){
|
p.$goto.each(function(){
|
||||||
this.innerHTML = t;
|
this.innerHTML = t;
|
||||||
this.value = p.page + 1;
|
this.value = p.page + 1;
|
||||||
|
@ -411,7 +411,10 @@ tsp = ts.pager = {
|
|||||||
if ($out.length) {
|
if ($out.length) {
|
||||||
$out[ ($out[0].tagName === 'INPUT') ? 'val' : 'html' ](s);
|
$out[ ($out[0].tagName === 'INPUT') ? 'val' : 'html' ](s);
|
||||||
if ( p.$goto.length ) {
|
if ( p.$goto.length ) {
|
||||||
t = '<option>' + tsp.buildPageSelect(p, c).join('</option><option>') + '</option>';
|
t = '';
|
||||||
|
$.each(tsp.buildPageSelect(p, c), function(i, opt){
|
||||||
|
t += '<option value="' + opt + '">' + opt + '</option>';
|
||||||
|
});
|
||||||
p.$goto.each(function(){
|
p.$goto.each(function(){
|
||||||
this.innerHTML = t;
|
this.innerHTML = t;
|
||||||
this.value = p.page + 1;
|
this.value = p.page + 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user