Author Topic: Bug on pagination - IE  (Read 3586 times)

luis.batista

  • Newbie
  • *
  • Posts: 3
    • View Profile
Bug on pagination - IE
« on: October 17, 2013, 02:43:04 am »
Hi there...

I know that legacy browsers are complicated to talking about.. but i'm using PQGrid on a project that must be compatible to IE 7, and it works perfectly, just a spot bother me...
When I put a number of a page on the pagination input and I tap 'enter', dont change the page, but just when I'm using the keyboard, if I click on the 'next' or 'preview' button it works

luis.batista

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Bug on pagination - IE
« Reply #1 on: November 06, 2013, 06:24:24 pm »
Well I realize that on IE7, when I put the focus on another place that my input, the pagination works  :o. So I just set the focus to my grid when I put ENTER on the input. The code looks like this:

$('.pq-pageholder').find('input').keypress(function(e){
     if(e.which == 13) {
          $('#grid').focus()
     }
});

I put that  on the refresh method and works for me , hope that helps ^^
« Last Edit: November 06, 2013, 06:31:26 pm by luis.batista »