diff war/scripts/sti/DynamicTable.js @ 40:20eb7596d466 CellTable

Preparation for a switch to a CellTable. This is work in progress.
author Sebastian Kruse <skruse@mpiwg-berlin.mpg.de>
date Thu, 06 Dec 2012 18:05:39 +0100
parents cf06b77a8bbd
children
line wrap: on
line diff
--- a/war/scripts/sti/DynamicTable.js	Thu Dec 06 18:05:16 2012 +0100
+++ b/war/scripts/sti/DynamicTable.js	Thu Dec 06 18:05:39 2012 +0100
@@ -5,7 +5,6 @@
 
     this.core = core;
     this.dataSet = dataSet;
-    this.chunks = [];
     this.index = index;
     this.tableDiv;
     this.tableHeader;
@@ -22,6 +21,7 @@
 DynamicTable.prototype = {
 
     initialize: function(){
+    	/*
     
         this.chunks.push([]);
         for (var i = 0; i < this.dataSet.objects.length; i++) {
@@ -155,10 +155,11 @@
         table.appendChild(this.tableFooter);
         
         this.createTableBody();
-        
+        */
     },
     
     createRow: function(object, index){
+    	/*
     
         var base = this;
         
@@ -236,10 +237,12 @@
         }
         
         return dataRow;
+        */
         
     },
     
     createTableBody: function(){
+    	/*
         try {
             var selectedChunk = parseInt(this.chunkSelect.value);
             if (selectedChunk > this.chunks.length) {
@@ -261,9 +264,11 @@
             this.rows.push(row);
         }
         this.update();
+        */
     },
     
     update: function(){
+    	/*
         for (var i = 0; i < this.chunks[this.actualChunk].length; i++) {
             var object = this.chunks[this.actualChunk][i];
             var p = object.percentage;
@@ -275,6 +280,7 @@
             var b = cellColor.b + Math.round(p * (colors[this.index].bt - cellColor.b));
             this.rows[i].style.background = 'rgb(' + r + ',' + g + ',' + b + ')';
         }
+        */
     }
     
 }