tests/test-hgweb-empty.t
changeset 19781 74564c90026b
parent 19747 da3808bcfbfa
child 19783 1c2a309bba4f
equal deleted inserted replaced
19780:659bc603bd0d 19781:74564c90026b
    90   | rev -1: 
    90   | rev -1: 
    91   </div>
    91   </div>
    92   
    92   
    93   <script type="text/javascript">
    93   <script type="text/javascript">
    94       ajaxScrollInit(
    94       ajaxScrollInit(
    95               '/shortlog/%hash%',
    95               '/shortlog/%next%',
    96               '', <!-- NEXTHASH
    96               '', <!-- NEXTHASH
    97               /'(\w+)', <!-- NEXTHASH/,
    97               function (htmlText, previousVal) {
       
    98                   var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
       
    99                   return m ? m[1] : null;
       
   100               },
    98               '.bigtable > tbody:nth-of-type(2)',
   101               '.bigtable > tbody:nth-of-type(2)',
    99               '<tr class="%class%">\
   102               '<tr class="%class%">\
   100               <td colspan="3" style="text-align: center;">%text%</td>\
   103               <td colspan="3" style="text-align: center;">%text%</td>\
   101               </tr>'
   104               </tr>'
   102       );
   105       );
   197   | rev -1: 
   200   | rev -1: 
   198   </div>
   201   </div>
   199   
   202   
   200   <script type="text/javascript">
   203   <script type="text/javascript">
   201       ajaxScrollInit(
   204       ajaxScrollInit(
   202               '/shortlog/%hash%',
   205               '/shortlog/%next%',
   203               '', <!-- NEXTHASH
   206               '', <!-- NEXTHASH
   204               /'(\w+)', <!-- NEXTHASH/,
   207               function (htmlText, previousVal) {
       
   208                   var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
       
   209                   return m ? m[1] : null;
       
   210               },
   205               '.bigtable > tbody:nth-of-type(2)',
   211               '.bigtable > tbody:nth-of-type(2)',
   206               '<tr class="%class%">\
   212               '<tr class="%class%">\
   207               <td colspan="3" style="text-align: center;">%text%</td>\
   213               <td colspan="3" style="text-align: center;">%text%</td>\
   208               </tr>'
   214               </tr>'
   209       );
   215       );