X-Git-Url: http://git.onelab.eu/?p=plewww.git;a=blobdiff_plain;f=planetlab%2Fslices%2Fleases.js;h=ee0efcd48015720ac0e8b4f48290ee7c4b7bb964;hp=741e32eaa77e06a1acf338831e6f15b0edaae6f4;hb=6a1d8248f67a405efd7e175f5593455757f55cc2;hpb=c1471bbac67bb93d0879e5594aa5f37320649d08 diff --git a/planetlab/slices/leases.js b/planetlab/slices/leases.js index 741e32e..ee0efcd 100644 --- a/planetlab/slices/leases.js +++ b/planetlab/slices/leases.js @@ -1,3 +1,5 @@ +/* Thierry Parmentelat -- INRIA */ + /* need to put some place else in CSS ? */ // space for the nodenames @@ -72,14 +74,11 @@ function Scheduler () { // the names of the hidden fields that hold the input to this class // are hard-wired for now this.parse_html = function () { - window.console.log('in parse_html'); var table = $$("table#leases_data")[0]; // no reservable nodes - no data - if ( ! table) { - window.console.log('no table'); - return false; - } + if ( ! table) return false; + // the nodelabels var data = [], axisx = [], axisy = []; table.getElementsBySelector("tbody>tr>th").each(function (cell) { @@ -87,11 +86,7 @@ function Scheduler () { }); // test for at least one entry; other wise this means we haven't retrieved // the html dta yet - if (axisy.length <1) { - window.console.log('no axisy'); - window.console.log('have retrieved html text as'+getInnerText(table)); - return false; - } + if (axisy.length <1) return false; // the timeslot labels table.getElementsBySelector("thead>tr>th").each(function (cell) { @@ -115,7 +110,6 @@ function Scheduler () { }); this.axisx=axisx; - window.console.log('in parse_html, set axisx to'+axisx.length); this.axisy=axisy; this.data=data; return true; @@ -127,7 +121,6 @@ function Scheduler () { //////////////////// // draw this.draw_area = function (canvas_id) { - window.console.log('in draw_area'); this.total_width = x_nodelabel + this.nb_grains()*this.leases_w; this.total_height = 2*y_header /* the timelabels */ + 2*y_sep /* extra space */ @@ -150,7 +143,6 @@ function Scheduler () { this.timebutton_path="M1,0L"+(this.leases_w-1)+",0L"+(this.leases_w/2)+","+y_header+"L1,0"; var axisx=this.axisx; - window.console.log('in draw_area, retrieved axisx' + axisx.length); var axisy=this.axisy; // maintain the list of nodelabels for the 'all nodes' button @@ -270,7 +262,7 @@ function Scheduler () { if (lease.current=='mine') { var j=i+1; while (j