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