@@ -138,8 +138,8 @@ include file="/httpheader.jspf"
138
138
History hist;
139
139
if ((hist = (History ) request. getAttribute(" history.jsp-hist" )) != null ) {
140
140
141
- int start = cfg. getSearchStart ();
142
- int max = cfg. getSearchMaxItems ();
141
+ int start = cfg. getStartIndex ();
142
+ int max = cfg. getMaxItems ();
143
143
long totalHits = hist. getHistoryEntries(). size();
144
144
long thispage = Math . min(totalHits - start, max);
145
145
@@ -198,8 +198,8 @@ include file="/minisearch.jspf"
198
198
revision2 + 1 : cfg. getIntParam(QueryParameters . REVISION_1_PARAM , - 1 );
199
199
revision2 = revision2 >= hist. getHistoryEntries(). size() ? hist. getHistoryEntries(). size() - 1 : revision2;
200
200
201
- int start = cfg. getSearchStart ();
202
- int max = cfg. getSearchMaxItems ();
201
+ int startIndex = cfg. getStartIndex ();
202
+ int maxItems = cfg. getMaxItems ();
203
203
% >
204
204
<script type =" text/javascript" >/* <![CDATA[ */
205
205
document .domReady .push (function () {domReadyHistory ();});
@@ -255,7 +255,7 @@ document.domReady.push(function() {domReadyHistory();});
255
255
<tbody >
256
256
<%
257
257
int count= 0 ;
258
- for (HistoryEntry entry : hist. getHistoryEntries(max, start )) {
258
+ for (HistoryEntry entry : hist. getHistoryEntries(maxItems, startIndex )) {
259
259
String rev = entry. getRevision();
260
260
if (rev == null || rev. length() == 0 ) {
261
261
rev = " " ;
@@ -296,17 +296,17 @@ document.domReady.push(function() {domReadyHistory();});
296
296
<td ><%
297
297
% > <input type =" radio"
298
298
aria-label =" From"
299
- data-revision-1 =" <%= (start + count) % >"
299
+ data-revision-1 =" <%= (startIndex + count) % >"
300
300
data-revision-2 =" <%= revision2 % >"
301
301
data-diff-revision =" <%= QueryParameters . REVISION_1_PARAM % >"
302
- data-revision-path =" <%= path + ' @' + hist. getHistoryEntries(). get(start + count). getRevision() % >"
302
+ data-revision-path =" <%= path + ' @' + hist. getHistoryEntries(). get(startIndex + count). getRevision() % >"
303
303
<%
304
- if (count + start > revision1 || (count + start > revision2 && count + start <= revision1 - 1)) {
304
+ if (count + startIndex > revision1 || (count + startIndex > revision2 && count + startIndex <= revision1 - 1)) {
305
305
// revision1 enabled
306
- } else if (count + start == revision1 ) {
306
+ } else if (count + startIndex == revision1 ) {
307
307
// revision1 selected
308
308
%> checked="checked"<%
309
- } else if ( count + start <= revision2 ) {
309
+ } else if ( count + startIndex <= revision2 ) {
310
310
// revision1 disabled
311
311
% > disabled="disabled" <%
312
312
}
@@ -315,16 +315,16 @@ document.domReady.push(function() {domReadyHistory();});
315
315
% > <input type =" radio"
316
316
aria-label =" To"
317
317
data-revision-1 =" <%= revision1 % >"
318
- data-revision-2 =" <%= (start + count) % >"
318
+ data-revision-2 =" <%= (startIndex + count) % >"
319
319
data-diff-revision =" <%= QueryParameters . REVISION_2_PARAM % >"
320
- data-revision-path =" <%= path + ' @' + hist. getHistoryEntries(). get(start + count). getRevision() % >"
320
+ data-revision-path =" <%= path + ' @' + hist. getHistoryEntries(). get(startIndex + count). getRevision() % >"
321
321
<%
322
- if( count + start < revision2 || (count + start > revision2 && count + start <= revision1 - 1) ) {
322
+ if( count + startIndex < revision2 || (count + startIndex > revision2 && count + startIndex <= revision1 - 1) ) {
323
323
// revision2 enabled
324
- } else if( count + start == revision2 ) {
324
+ } else if( count + startIndex == revision2 ) {
325
325
// revision2 selected
326
326
%> checked="checked" <%
327
- } else if (count + start >= revision1 ) {
327
+ } else if (count + startIndex >= revision1 ) {
328
328
// revision2 disabled
329
329
% > disabled="disabled" <%
330
330
}
0 commit comments