Show More
@@ -383,8 +383,12 b' function ajaxScrollInit(urlFormat,' | |||||
383 | }, |
|
383 | }, | |
384 | function onsuccess(htmlText) { |
|
384 | function onsuccess(htmlText) { | |
385 | if (mode == 'graph') { |
|
385 | if (mode == 'graph') { | |
386 |
var |
|
386 | var sizes = htmlText.match(/^\s*<canvas id="graph" width="(\d+)" height="(\d+)"><\/canvas>$/m); | |
|
387 | var addWidth = sizes[1]; | |||
|
388 | var addHeight = sizes[2]; | |||
|
389 | addWidth = parseInt(addWidth); | |||
387 | addHeight = parseInt(addHeight); |
|
390 | addHeight = parseInt(addHeight); | |
|
391 | graph.canvas.width = addWidth; | |||
388 | graph.canvas.height = addHeight; |
|
392 | graph.canvas.height = addHeight; | |
389 |
|
393 | |||
390 | var dataStr = htmlText.match(/^\s*var data = (.*);$/m)[1]; |
|
394 | var dataStr = htmlText.match(/^\s*var data = (.*);$/m)[1]; |
General Comments 0
You need to be logged in to leave comments.
Login now