mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
- Fix JS error when selecting no columns
- Fix not including selector width caused undesired column resizing
This commit is contained in:
parent
529d154514
commit
5318ebdb21
@ -320,6 +320,7 @@ var et2_gantt = et2_inputWidget.extend([et2_IResizeable,et2_IInput],
|
|||||||
}
|
}
|
||||||
// Add in add column
|
// Add in add column
|
||||||
displayed_columns.push({name: 'add', width: 26});
|
displayed_columns.push({name: 'add', width: 26});
|
||||||
|
width += 26;
|
||||||
|
|
||||||
if(width != this.gantt_config.grid_width || typeof this.gantt_config.grid_width == 'undefined')
|
if(width != this.gantt_config.grid_width || typeof this.gantt_config.grid_width == 'undefined')
|
||||||
{
|
{
|
||||||
@ -1030,7 +1031,7 @@ var et2_gantt = et2_inputWidget.extend([et2_IResizeable,et2_IInput],
|
|||||||
okButton.set_label(this.egw().lang("ok"));
|
okButton.set_label(this.egw().lang("ok"));
|
||||||
okButton.onclick = function() {
|
okButton.onclick = function() {
|
||||||
// Update columns
|
// Update columns
|
||||||
var value = select.getValue();
|
var value = select.getValue() || [];
|
||||||
for (var i = 0; i < columns.length; i++)
|
for (var i = 0; i < columns.length; i++)
|
||||||
{
|
{
|
||||||
self.gantt_config.columns[i].hide = value.indexOf(columns[i].value) < 0 ;
|
self.gantt_config.columns[i].hide = value.indexOf(columns[i].value) < 0 ;
|
||||||
|
Loading…
Reference in New Issue
Block a user