From: Eric Bollengier Date: Fri, 8 Oct 2010 07:49:20 +0000 (+0200) Subject: bweb: small fix in overview tab X-Git-Tag: Release-5.2.1~1026 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=79b83e4bdc48ce1b65d6e7c4be7a07f456f697f2;p=bacula%2Fbacula bweb: small fix in overview tab --- 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();