|
114 | 114 | type: "local", |
115 | 115 | pageSize: 10, |
116 | 116 | showPageSizeDropDown: false, |
117 | | - pageIndexChanging: function (e, args) { |
118 | | - addUndoState("page", null, false, args.currentPageIndex + 1, args.newPageIndex + 1); |
119 | | - }, |
120 | 117 | pageIndexChanged: function (e, args) { |
121 | 118 | var pageIndex = args.pageIndex + 1, |
122 | 119 | state = { key: "page", value: pageIndex }; |
|
200 | 197 | var currState, undoState, state, prevState, stateOccurances; |
201 | 198 | // isBackForward = (window.History.storedStates.length - historyLength) === 1; |
202 | 199 |
|
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 | | - } |
207 | 200 | // historyLength = window.History.storedStates.length; |
208 | 201 | if (manualStateChange === true) { // Fired only when called externally from browser buttons |
209 | 202 | currState = window.History.getState(); |
|
219 | 212 | // Load/Unload previous state |
220 | 213 | if (undoState) { |
221 | 214 | switch (undoState.key) { |
222 | | - case "page": loadPagingState(undoState.key, undoState.value); break; |
223 | 215 | case "sort": loadSortingState(undoState.key, undoState.value, undoState.undo); break; |
224 | 216 | case "filter": loadFilteringState(undoState.key, undoState.value, undoState.undo); break; |
225 | 217 | case "resize": loadResizingState(undoState.key, undoState.value); break; |
|
0 commit comments