Pager: IE requires a value attribute for every option. Fixes #734

This commit is contained in:
Mottie 2014-10-07 08:14:36 -05:00
parent 7a1a90232b
commit 655b2c9277
2 changed files with 8 additions and 2 deletions

View File

@ -188,7 +188,10 @@
if ($out.length) {
$out[ ($out[0].tagName === 'INPUT') ? 'val' : 'html' ](s);
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(){
this.innerHTML = t;
this.value = p.page + 1;

View File

@ -411,7 +411,10 @@ tsp = ts.pager = {
if ($out.length) {
$out[ ($out[0].tagName === 'INPUT') ? 'val' : 'html' ](s);
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(){
this.innerHTML = t;
this.value = p.page + 1;