@@ -138,8 +138,8 @@ include file="/httpheader.jspf"
138138 History hist;
139139 if ((hist = (History ) request. getAttribute(" history.jsp-hist" )) != null ) {
140140
141- int start = cfg. getSearchStart ();
142- int max = cfg. getSearchMaxItems ();
141+ int start = cfg. getStartIndex ();
142+ int max = cfg. getMaxItems ();
143143 long totalHits = hist. getHistoryEntries(). size();
144144 long thispage = Math . min(totalHits - start, max);
145145
@@ -198,8 +198,8 @@ include file="/minisearch.jspf"
198198 revision2 + 1 : cfg. getIntParam(QueryParameters . REVISION_1_PARAM , - 1 );
199199 revision2 = revision2 >= hist. getHistoryEntries(). size() ? hist. getHistoryEntries(). size() - 1 : revision2;
200200
201- int start = cfg. getSearchStart ();
202- int max = cfg. getSearchMaxItems ();
201+ int startIndex = cfg. getStartIndex ();
202+ int maxItems = cfg. getMaxItems ();
203203% >
204204<script type =" text/javascript" >/* <![CDATA[ */
205205document .domReady .push (function () {domReadyHistory ();});
@@ -255,7 +255,7 @@ document.domReady.push(function() {domReadyHistory();});
255255 <tbody >
256256 <%
257257 int count= 0 ;
258- for (HistoryEntry entry : hist. getHistoryEntries(max, start )) {
258+ for (HistoryEntry entry : hist. getHistoryEntries(maxItems, startIndex )) {
259259 String rev = entry. getRevision();
260260 if (rev == null || rev. length() == 0 ) {
261261 rev = " " ;
@@ -296,17 +296,17 @@ document.domReady.push(function() {domReadyHistory();});
296296 <td ><%
297297 % > <input type =" radio"
298298 aria-label =" From"
299- data-revision-1 =" <%= (start + count) % >"
299+ data-revision-1 =" <%= (startIndex + count) % >"
300300 data-revision-2 =" <%= revision2 % >"
301301 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() % >"
303303 <%
304- if (count + start > revision1 || (count + start > revision2 && count + start <= revision1 - 1)) {
304+ if (count + startIndex > revision1 || (count + startIndex > revision2 && count + startIndex <= revision1 - 1)) {
305305 // revision1 enabled
306- } else if (count + start == revision1 ) {
306+ } else if (count + startIndex == revision1 ) {
307307 // revision1 selected
308308 %> checked="checked"<%
309- } else if ( count + start <= revision2 ) {
309+ } else if ( count + startIndex <= revision2 ) {
310310 // revision1 disabled
311311 % > disabled="disabled" <%
312312 }
@@ -315,16 +315,16 @@ document.domReady.push(function() {domReadyHistory();});
315315 % > <input type =" radio"
316316 aria-label =" To"
317317 data-revision-1 =" <%= revision1 % >"
318- data-revision-2 =" <%= (start + count) % >"
318+ data-revision-2 =" <%= (startIndex + count) % >"
319319 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() % >"
321321 <%
322- if( count + start < revision2 || (count + start > revision2 && count + start <= revision1 - 1) ) {
322+ if( count + startIndex < revision2 || (count + startIndex > revision2 && count + startIndex <= revision1 - 1) ) {
323323 // revision2 enabled
324- } else if( count + start == revision2 ) {
324+ } else if( count + startIndex == revision2 ) {
325325 // revision2 selected
326326 %> checked="checked" <%
327- } else if (count + start >= revision1 ) {
327+ } else if (count + startIndex >= revision1 ) {
328328 // revision2 disabled
329329 % > disabled="disabled" <%
330330 }
0 commit comments