mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
fix some JS errors displayed in mail
This commit is contained in:
parent
e1e218580b
commit
94d6b365ea
@ -14,9 +14,9 @@ import {etemplate2} from "../etemplate/etemplate2";
|
|||||||
import {et2_createWidget} from "../etemplate/et2_core_widget";
|
import {et2_createWidget} from "../etemplate/et2_core_widget";
|
||||||
import {Et2Dialog} from "../etemplate/Et2Dialog/Et2Dialog";
|
import {Et2Dialog} from "../etemplate/Et2Dialog/Et2Dialog";
|
||||||
import {et2_nextmatch} from "../etemplate/et2_extension_nextmatch";
|
import {et2_nextmatch} from "../etemplate/et2_extension_nextmatch";
|
||||||
import {EGW_KEY_ENTER} from "../egw_action/egw_action_constants";
|
|
||||||
import "sortablejs/Sortable.min.js";
|
import "sortablejs/Sortable.min.js";
|
||||||
import {Et2Favorites} from "../etemplate/Et2Favorites/Et2Favorites";
|
import {Et2Favorites} from "../etemplate/Et2Favorites/Et2Favorites";
|
||||||
|
import {egw_globalObjectManager} from "../egw_action/egw_action";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Common base class for application javascript
|
* Common base class for application javascript
|
||||||
|
@ -1678,13 +1678,13 @@ app.classes.mail = AppJS.extend(
|
|||||||
if (!this.et2 && !this.checkET2()) return;
|
if (!this.et2 && !this.checkET2()) return;
|
||||||
if (_data == null)
|
if (_data == null)
|
||||||
{
|
{
|
||||||
this.et2.getWidgetById('mail.index.vacationnotice').set_disabled(true);
|
this.et2.getWidgetById('mail.index.vacationnotice')?.set_disabled(true);
|
||||||
this.et2.getWidgetById(this.nm_index+'[vacationnotice]').set_value('');
|
this.et2.getWidgetById(this.nm_index+'[vacationnotice]').set_value('');
|
||||||
this.et2.getWidgetById(this.nm_index+'[vacationrange]').set_value('');
|
this.et2.getWidgetById(this.nm_index+'[vacationrange]').set_value('');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.et2.getWidgetById('mail.index.vacationnotice').set_disabled(false);
|
this.et2.getWidgetById('mail.index.vacationnotice')?.set_disabled(false);
|
||||||
this.et2.getWidgetById(this.nm_index+'[vacationnotice]').set_value(_data.vacationnotice);
|
this.et2.getWidgetById(this.nm_index+'[vacationnotice]').set_value(_data.vacationnotice);
|
||||||
this.et2.getWidgetById(this.nm_index+'[vacationrange]').set_value(_data.vacationrange);
|
this.et2.getWidgetById(this.nm_index+'[vacationrange]').set_value(_data.vacationrange);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user