Permalink
Browse files

fix: 解决IE8下翻页标签无法修改每页数量

  • Loading branch information...
liuyk
liuyk committed Jan 3, 2017
1 parent fe38bfd commit e1ff5650f3dac7aa2743c8daf88ca4859f8874aa
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/neoui-pagination.js
@@ -295,15 +295,15 @@ pagination.prototype.render = function() {
})
each(this.$ul.querySelectorAll('[role="page"] a'), function(i, node) {
on(node, 'click', function() {
var pz = (me.$element.querySelector(".page_z") && me.$element.querySelector(".page_z").value) || options.pageSize;
var pz = (me.$element.querySelector(".page_z") && $(this).val()) || options.pageSize;
me.page(parseInt(this.innerHTML), options.totalPages, pz);
//me.$element.trigger('pageChange', parseInt($(this).html()) - 1)
return false;
})
})
on(this.$ul.querySelector('.page_z'), 'change', function() {
var pz = (me.$element.querySelector(".page_z") && me.$element.querySelector(".page_z").value) || options.pageSize;
var pz = (me.$element.querySelector(".page_z") && $(this).val()) || options.pageSize;
me.trigger('sizeChange', pz)
})

0 comments on commit e1ff565

Please sign in to comment.