From 79b83e4bdc48ce1b65d6e7c4be7a07f456f697f2 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 8 Oct 2010 09:49:20 +0200 Subject: [PATCH] bweb: small fix in overview tab --- gui/bweb/lang/en/tpl/overview.tpl | 7 +++++++ gui/bweb/lang/es/tpl/overview.tpl | 7 +++++++ gui/bweb/lang/fr/tpl/overview.tpl | 7 +++++++ gui/bweb/tpl/overview.tpl | 7 +++++++ 4 files changed, 28 insertions(+) diff --git a/gui/bweb/lang/en/tpl/overview.tpl b/gui/bweb/lang/en/tpl/overview.tpl index 50ce025b9c..bdcceae21c 100644 --- a/gui/bweb/lang/en/tpl/overview.tpl +++ b/gui/bweb/lang/en/tpl/overview.tpl @@ -41,6 +41,7 @@ var tr; var td; var img; var infos; var all = new Array(); var dates = {}; var dates_pos = {}; +var max_pos=0; infos = new Array(); @@ -104,6 +105,7 @@ function init_tab() // initialize the table dates_pos[j]=i++; // position in the tab document.getElementById("days").appendChild(t); } + max_pos=i; } function add_client(name, infos) @@ -138,6 +140,11 @@ function add_client(name, infos) // a.appendChild(img); td.appendChild(img); } + + while (cur_pos++ < max_pos) { + td=document.createElement("TD"); + tr.appendChild(td); + } } init_tab(); diff --git a/gui/bweb/lang/es/tpl/overview.tpl b/gui/bweb/lang/es/tpl/overview.tpl index 50ce025b9c..bdcceae21c 100644 --- a/gui/bweb/lang/es/tpl/overview.tpl +++ b/gui/bweb/lang/es/tpl/overview.tpl @@ -41,6 +41,7 @@ var tr; var td; var img; var infos; var all = new Array(); var dates = {}; var dates_pos = {}; +var max_pos=0; infos = new Array(); @@ -104,6 +105,7 @@ function init_tab() // initialize the table dates_pos[j]=i++; // position in the tab document.getElementById("days").appendChild(t); } + max_pos=i; } function add_client(name, infos) @@ -138,6 +140,11 @@ function add_client(name, infos) // a.appendChild(img); td.appendChild(img); } + + while (cur_pos++ < max_pos) { + td=document.createElement("TD"); + tr.appendChild(td); + } } init_tab(); diff --git a/gui/bweb/lang/fr/tpl/overview.tpl b/gui/bweb/lang/fr/tpl/overview.tpl index 50ce025b9c..bdcceae21c 100644 --- a/gui/bweb/lang/fr/tpl/overview.tpl +++ b/gui/bweb/lang/fr/tpl/overview.tpl @@ -41,6 +41,7 @@ var tr; var td; var img; var infos; var all = new Array(); var dates = {}; var dates_pos = {}; +var max_pos=0; infos = new Array(); @@ -104,6 +105,7 @@ function init_tab() // initialize the table dates_pos[j]=i++; // position in the tab document.getElementById("days").appendChild(t); } + max_pos=i; } function add_client(name, infos) @@ -138,6 +140,11 @@ function add_client(name, infos) // a.appendChild(img); td.appendChild(img); } + + while (cur_pos++ < max_pos) { + td=document.createElement("TD"); + tr.appendChild(td); + } } init_tab(); diff --git a/gui/bweb/tpl/overview.tpl b/gui/bweb/tpl/overview.tpl index bac74b6b45..b68054d986 100644 --- a/gui/bweb/tpl/overview.tpl +++ b/gui/bweb/tpl/overview.tpl @@ -41,6 +41,7 @@ var tr; var td; var img; var infos; var all = new Array(); var dates = {}; var dates_pos = {}; +var max_pos=0; infos = new Array(); @@ -104,6 +105,7 @@ function init_tab() // initialize the table dates_pos[j]=i++; // position in the tab document.getElementById("days").appendChild(t); } + max_pos=i; } function add_client(name, infos) @@ -138,6 +140,11 @@ function add_client(name, infos) // a.appendChild(img); td.appendChild(img); } + + while (cur_pos++ < max_pos) { + td=document.createElement("TD"); + tr.appendChild(td); + } } init_tab(); -- 2.39.5