Skip to content

Commit

Permalink
fixed-pagination-issue-admin-review-grid-clean-code
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicfernando committed Mar 1, 2019
1 parent 36ebc65 commit 5392ee7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/web/mage/adminhtml/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,12 +538,11 @@ define([
enteredValue = parseInt(element.value),
lastId = parseInt(lastId);


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

Expand Down

0 comments on commit 5392ee7

Please sign in to comment.