##// END OF EJS Templates
hgweb: fix unstoppable loading of graph when no more results...
Alexander Plavin -
r19907:aebfbb68 default
parent child Browse files
Show More
@@ -393,8 +393,6 b' function ajaxScrollInit(urlFormat,'
393 393 appendFormatHTML(container, messageFormat, message);
394 394 },
395 395 function onsuccess(htmlText) {
396 nextPageVar = nextPageVarGet(htmlText, nextPageVar);
397
398 396 if (mode == 'graph') {
399 397 var addHeight = htmlText.match(/^<canvas id="graph".*height="(\d+)"><\/canvas>$/m)[1];
400 398 addHeight = parseInt(addHeight);
@@ -402,6 +400,9 b' function ajaxScrollInit(urlFormat,'
402 400
403 401 var dataStr = htmlText.match(/^\s*var data = (.*);$/m)[1];
404 402 var data = JSON.parse(dataStr)
403 if (data.length < nextPageVar) {
404 nextPageVar = undefined;
405 }
405 406 graph.reset();
406 407 graph.render(data);
407 408 } else {
@@ -416,6 +417,8 b' function ajaxScrollInit(urlFormat,'
416 417 }
417 418 process_dates('.' + curClass);
418 419 }
420
421 nextPageVar = nextPageVarGet(htmlText, nextPageVar);
419 422 },
420 423 function onerror(errorText) {
421 424 var message = {
General Comments 0
You need to be logged in to leave comments. Login now