mercurial/templates/static/mercurial.js
branchstable
changeset 27934 1779ff7426c9
parent 26867 ad443e8d9334
child 30765 eb7de21b15be
equal deleted inserted replaced
27933:a6833e464b07 27934:1779ff7426c9
   381                     };
   381                     };
   382                     appendFormatHTML(container, messageFormat, message);
   382                     appendFormatHTML(container, messageFormat, message);
   383                 },
   383                 },
   384                 function onsuccess(htmlText) {
   384                 function onsuccess(htmlText) {
   385                     if (mode == 'graph') {
   385                     if (mode == 'graph') {
   386                         var addHeight = htmlText.match(/^\s*<canvas id="graph".*height="(\d+)"><\/canvas>$/m)[1];
   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];
   391                         var data = JSON.parse(dataStr);
   395                         var data = JSON.parse(dataStr);
   392                         if (data.length < nextPageVar) {
   396                         if (data.length < nextPageVar) {