Skip to content

Commit 3c6c0a8

Browse files
committed
Fixes on the history.js sample.
1 parent 1a2ffb0 commit 3c6c0a8

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

HTMLSamples/grid/history.html

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@
114114
type: "local",
115115
pageSize: 10,
116116
showPageSizeDropDown: false,
117-
pageIndexChanging: function (e, args) {
118-
addUndoState("page", null, false, args.currentPageIndex + 1, args.newPageIndex + 1);
119-
},
120117
pageIndexChanged: function (e, args) {
121118
var pageIndex = args.pageIndex + 1,
122119
state = { key: "page", value: pageIndex };
@@ -200,10 +197,6 @@
200197
var currState, undoState, state, prevState, stateOccurances;
201198
// isBackForward = (window.History.storedStates.length - historyLength) === 1;
202199

203-
if ($("#sample-title")[0] !== undefined && $("#sample-title")[0].textContent !== undefined && $("#sample-title")[0].textContent.toLowerCase().indexOf("history.js") == -1) {
204-
// This check is not related to history.js integaration. It's done to integrate the sample with the Samples Browser.
205-
return;
206-
}
207200
// historyLength = window.History.storedStates.length;
208201
if (manualStateChange === true) { // Fired only when called externally from browser buttons
209202
currState = window.History.getState();
@@ -219,7 +212,6 @@
219212
// Load/Unload previous state
220213
if (undoState) {
221214
switch (undoState.key) {
222-
case "page": loadPagingState(undoState.key, undoState.value); break;
223215
case "sort": loadSortingState(undoState.key, undoState.value, undoState.undo); break;
224216
case "filter": loadFilteringState(undoState.key, undoState.value, undoState.undo); break;
225217
case "resize": loadResizingState(undoState.key, undoState.value); break;

0 commit comments

Comments
 (0)