mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
if this.et2 is not defined, try to recover, if this fails, return silently and skip attempt to refresh quta/vacationnotice/filter/filter2
This commit is contained in:
parent
8fb542465f
commit
ff6484bbbb
@ -793,7 +793,18 @@ app.classes.mail = AppJS.extend(
|
|||||||
mail_setQuotaDisplay: function(_data)
|
mail_setQuotaDisplay: function(_data)
|
||||||
{
|
{
|
||||||
//this.et2 should do the same as etemplate2.getByApplication('mail')[0].widgetContainer
|
//this.et2 should do the same as etemplate2.getByApplication('mail')[0].widgetContainer
|
||||||
if (!this.et2) this.et2 = etemplate2.getByApplication('mail')[0].widgetContainer;
|
if (!this.et2)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
this.et2 = etemplate2.getByApplication('mail')[0].widgetContainer;
|
||||||
|
}
|
||||||
|
catch(e)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var quotabox = this.et2.getWidgetById(this.nm_index+'[quotainpercent]');
|
var quotabox = this.et2.getWidgetById(this.nm_index+'[quotainpercent]');
|
||||||
|
|
||||||
// Check to make sure it's there
|
// Check to make sure it's there
|
||||||
@ -826,7 +837,17 @@ app.classes.mail = AppJS.extend(
|
|||||||
//var vacationrange = this.et2.getWidgetById(this.nm_index+'[vacationrange]');
|
//var vacationrange = this.et2.getWidgetById(this.nm_index+'[vacationrange]');
|
||||||
//console.log(_data,vacationnotice,vacationrange);
|
//console.log(_data,vacationnotice,vacationrange);
|
||||||
//try to set it via set_value and set label
|
//try to set it via set_value and set label
|
||||||
if (!this.et2) this.et2 = etemplate2.getByApplication('mail')[0].widgetContainer;
|
if (!this.et2)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
this.et2 = etemplate2.getByApplication('mail')[0].widgetContainer;
|
||||||
|
}
|
||||||
|
catch(e)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (_data == null)
|
if (_data == null)
|
||||||
{
|
{
|
||||||
this.et2.getWidgetById(this.nm_index+'[vacationnotice]').set_value('');
|
this.et2.getWidgetById(this.nm_index+'[vacationnotice]').set_value('');
|
||||||
@ -847,7 +868,17 @@ app.classes.mail = AppJS.extend(
|
|||||||
{
|
{
|
||||||
//alert('mail_refreshFilter2Options');
|
//alert('mail_refreshFilter2Options');
|
||||||
if (_data == null) return;
|
if (_data == null) return;
|
||||||
if (!this.et2) this.et2 = etemplate2.getByApplication('mail')[0].widgetContainer;
|
if (!this.et2)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
this.et2 = etemplate2.getByApplication('mail')[0].widgetContainer;
|
||||||
|
}
|
||||||
|
catch(e)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
var filter2 = this.et2.getWidgetById('filter2');
|
var filter2 = this.et2.getWidgetById('filter2');
|
||||||
var current = filter2.value;
|
var current = filter2.value;
|
||||||
var currentexists=false;
|
var currentexists=false;
|
||||||
@ -867,7 +898,17 @@ app.classes.mail = AppJS.extend(
|
|||||||
{
|
{
|
||||||
//alert('mail_refreshFilterOptions');
|
//alert('mail_refreshFilterOptions');
|
||||||
if (_data == null) return;
|
if (_data == null) return;
|
||||||
if (!this.et2) this.et2 = etemplate2.getByApplication('mail')[0].widgetContainer;
|
if (!this.et2)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
this.et2 = etemplate2.getByApplication('mail')[0].widgetContainer;
|
||||||
|
}
|
||||||
|
catch(e)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
var filter = this.et2.getWidgetById('filter');
|
var filter = this.et2.getWidgetById('filter');
|
||||||
var current = filter.value;
|
var current = filter.value;
|
||||||
var currentexists=false;
|
var currentexists=false;
|
||||||
|
Loading…
Reference in New Issue
Block a user