@@ -57,7 +57,7 @@ graph.render(data);
ajaxScrollInit(
'{url|urlescape}graph/%next%{graphvars%urlparameter}',
'{nextentry%"{node}"}', <!-- NEXTHASH
- function (htmlText, previousVal) \{
+ function (htmlText) \{
var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
return m ? m[1] : null;
},
@@ -41,7 +41,7 @@ shortlog |
ajaxScrollInit(
'{url|urlescape}shortlog/%next%{sessionvars%urlparameter}',
'{nextentry%"{node}"}', <!-- NEXTHASH
- function (htmlText, previousVal) \{
+ function (htmlText) \{
var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
return m ? m[1] : null;
},
@@ -51,7 +51,7 @@
ajaxScrollInit(
'{url|urlescape}graph/%next%{graphvars%urlparameter}',
'{nextentry%"{node}"}', <!-- NEXTHASH
- function (htmlText, previousVal) \{
+ function (htmlText) \{
var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
return m ? m[1] : null;
},
@@ -39,7 +39,7 @@
ajaxScrollInit(
'{url|urlescape}shortlog/%next%{sessionvars%urlparameter}',
'{nextentry%"{node}"}', <!-- NEXTHASH
- function (htmlText, previousVal) \{
+ function (htmlText) \{
var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
return m ? m[1] : null;
},
@@ -70,7 +70,7 @@ graph.render(data);
ajaxScrollInit(
'{url|urlescape}graph/%next%{graphvars%urlparameter}',
'{nextentry%"{node}"}', <!-- NEXTHASH
- function (htmlText, previousVal) \{
+ function (htmlText) \{
var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
return m ? m[1] : null;
},
@@ -72,7 +72,7 @@
ajaxScrollInit(
'{url|urlescape}shortlog/%next%{sessionvars%urlparameter}',
'{nextentry%"{node}"}', <!-- NEXTHASH
- function (htmlText, previousVal) \{
+ function (htmlText) \{
var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
return m ? m[1] : null;
},
@@ -471,9 +471,6 @@ function ajaxScrollInit(urlFormat,
var graph = window.graph;
var dataStr = htmlText.match(/^\s*var data = (.*);$/m)[1];
var data = JSON.parse(dataStr);
- if (data.length < nextPageVar) {
- nextPageVar = undefined;
- }
graph.reset();
adoptChildren(doc.querySelector('#graphnodes'), container.querySelector('#graphnodes'));
graph.render(data);
@@ -481,7 +478,7 @@ function ajaxScrollInit(urlFormat,
adoptChildren(doc.querySelector(containerSelector), container);
}
- nextPageVar = nextPageVarGet(htmlText, nextPageVar);
+ nextPageVar = nextPageVarGet(htmlText);
},
function onerror(errorText) {
var message = {
@@ -816,7 +816,7 @@ Logs and changes
ajaxScrollInit(
'/shortlog/%next%',
'', <!-- NEXTHASH
- function (htmlText, previousVal) {
+ function (htmlText) {
var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
return m ? m[1] : null;
},
@@ -1837,7 +1837,7 @@ Overviews
ajaxScrollInit(
'/graph/%next%?graphtop=cad8025a2e87f88c06259790adfa15acb4080123&style=gitweb',
'', <!-- NEXTHASH
- function (htmlText, previousVal) {
+ function (htmlText) {
var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
return m ? m[1] : null;
},
@@ -96,7 +96,7 @@ Some tests for hgweb in an empty reposit
ajaxScrollInit(
'/shortlog/%next%',
'', <!-- NEXTHASH
- function (htmlText, previousVal) {
+ function (htmlText) {
var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
return m ? m[1] : null;
},
@@ -207,7 +207,7 @@ Some tests for hgweb in an empty reposit
ajaxScrollInit(
'/shortlog/%next%',
'', <!-- NEXTHASH
- function (htmlText, previousVal) {
+ function (htmlText) {
var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
return m ? m[1] : null;
},
@@ -314,7 +314,7 @@ Some tests for hgweb in an empty reposit
ajaxScrollInit(
'/graph/%next%?graphtop=0000000000000000000000000000000000000000',
'', <!-- NEXTHASH
- function (htmlText, previousVal) {
+ function (htmlText) {
var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
return m ? m[1] : null;
},