Skip to content

Commit

Permalink
Fix static tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmalevanec authored and dominicfernando committed Mar 1, 2019
1 parent 5392ee7 commit 73b57d4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/web/mage/adminhtml/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,17 +530,17 @@ define([

/**
* @param {Object} event
* @param int lastId
* @param {*} lastId
*/
inputPage: function (event, lastId) {
var element = Event.element(event),
keyCode = event.keyCode || event.which,
enteredValue = parseInt(element.value),
lastId = parseInt(lastId);
enteredValue = parseInt(element.value, 10),
pageId = parseInt(lastId, 10);

if (keyCode == Event.KEY_RETURN) { //eslint-disable-line eqeqeq
if (enteredValue > lastId) {
this.setPage(lastId);
if (enteredValue > pageId) {
this.setPage(pageId);
} else {
this.setPage(enteredValue);
}
Expand Down

0 comments on commit 73b57d4

Please sign in to comment.