forked from extern/egroupware
Make sure windows.opener has egw object, fixes not able to open calendar entry
This commit is contained in:
parent
0eb3619cd1
commit
bd59406191
@ -977,7 +977,7 @@ et2_calendar_event.recur_prompt = function(event_data, callback, extra_data)
|
||||
{
|
||||
var edit_id = event_data.app_id;
|
||||
var edit_date = event_data.start;
|
||||
var egw = this.egw ? (typeof this.egw == 'function' ? this.egw() : this.egw) : (window.opener || window).egw('calendar');
|
||||
var egw = this.egw ? (typeof this.egw == 'function' ? this.egw() : this.egw) : window.opener && typeof window.opener.egw != 'undefined' ? window.opener.egw('calendar'):window.egw('calendar');
|
||||
var that = this;
|
||||
|
||||
var extra_params = extra_data && typeof extra_data == 'object' ? extra_data : {};
|
||||
@ -1041,7 +1041,7 @@ et2_calendar_event.recur_prompt = function(event_data, callback, extra_data)
|
||||
*/
|
||||
et2_calendar_event.series_split_prompt = function(event_data, instance_date, callback)
|
||||
{
|
||||
var egw = this.egw ? (typeof this.egw == 'function' ? this.egw() : this.egw) : (window.opener || window).egw('calendar');
|
||||
var egw = this.egw ? (typeof this.egw == 'function' ? this.egw() : this.egw) : window.opener && typeof window.opener.egw != 'undefined' ? window.opener.egw('calendar'):window.egw('calendar');
|
||||
var that = this;
|
||||
|
||||
if(typeof instance_date == 'string')
|
||||
|
Loading…
Reference in New Issue
Block a user