';
for (i = 0 ; i < data.length ; i++) {
if ((i % 4) == 0)
@@ -276,27 +299,15 @@ function j_stand_cont(ddata)
content += '';
content += j_stand_tdcont(data[i]);
content += ' | ';
-
+
if ((i % 4) == 3)
content += '';
}
if ((i % 4) < 3)
content += '';
content += '
';
-
- $("standup").innerHTML = content;
- // console.log("inizio");
- // for (i = 0 , curtag = table_walk($("standup")) ; curtag != null ; curtag = table_walk(curtag), i++ ) {
- // console.log("inloop["+i+"]: "+curtag.tagName+" ID: "+curtag.id);
- // }
- // console.log("fine "+i);
-
- // walktable($("standup"), nextag);
- // console.log($("standup").firstChild);
- // console.log($("standup").firstChild.firstChild.firstChild.firstChild);
-
- // log_walk($("standup"));
+ $("standup").innerHTML = content;
standup_data_old = data;
}
@@ -313,7 +324,7 @@ function j_stand_cont(ddata)
idx_mod = new Array();
arr_mod = new Array();
map_cur = new Array();
-
+
// find removed entries
for (i = 0 ; i < standup_data_old.length ; i++) {
for (e = 0 ; e < data.length ; e++) {
@@ -327,7 +338,9 @@ function j_stand_cont(ddata)
}
else {
/* modified entries */
- if (standup_data_old[i][0] != data[e][0]) {
+ if (standup_data_old[i][0] != data[e][0] ||
+ standup_data_old[i].length != data[e].length ||
+ (data[e].length == 3 && standup_data_old[i][2] != data[e][2])) {
arr_mod[idx_mod_n] = data[e];
idx_mod[idx_mod_n++] = i;
}
@@ -348,7 +361,7 @@ function j_stand_cont(ddata)
map_add[idx_add_n++] = e;
}
}
-
+
// TODO: qui travaso add in del
i_del = 0;
@@ -408,35 +421,37 @@ function j_stand_cont(ddata)
table_add($("standup"), td);
}
-
standup_data_old = data;
- return;
}
- // $("esco").innerHTML = '