[eGroupWare-svn] r55927 - /trunk/calendar/js/et2_widget_event.js
[email protected] Fri, 29 Apr 2016 08:37:34 -0000
| Newsgroups | gmane.comp.web.egroupware.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: hnategh
Date: Fri Apr 29 10:37:33 2016
New Revision: 55927
URL: http://svn.stylite.de/viewvc/egroupware?rev=55927&view=rev
Log:
Make sure windows.opener has egw object, fixes not able to open calendar entry
Modified:
trunk/calendar/js/et2_widget_event.js
Modified: trunk/calendar/js/et2_widget_event.js
URL: http://svn.stylite.de/viewvc/egroupware/trunk/calendar/js/et2_widget_event.js?rev=55927&r1=55926&r2=55927&view=diff
==============================================================================
--- trunk/calendar/js/et2_widget_event.js (original)
+++ trunk/calendar/js/et2_widget_event.js Fri Apr 29 10:37:33 2016
@@ -977,7 +977,7 @@
{
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.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')
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z