From 3778191a205308439670e57c6ae8c88b8b1f5794 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 5 Feb 2014 14:32:15 +0000 Subject: [PATCH] fixed add event was opened in to big popup when clicking on calendar background, using not egw.open(...,"add") for it --- calendar/js/app.js | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/calendar/js/app.js b/calendar/js/app.js index fd5c738b1b..f842bf48df 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -224,7 +224,7 @@ app.classes.calendar = AppJS.extend( var dataResize = resizeHelper.split("|"); var time = dataResize[1].split(":"); - this.dropStart = that.resizeHelper(ui.element[0].getBoundingClientRect().left,ui.element[0].getBoundingClientRect().top) + this.dropStart = that.resizeHelper(ui.element[0].getBoundingClientRect().left,ui.element[0].getBoundingClientRect().top); this.dropDate = dataResize[0]+"T"+time[0]+time[1]; //$j(this).resizable("option","containment",".calendar_calDayCol"); }, @@ -439,17 +439,12 @@ app.classes.calendar = AppJS.extend( { ownerId = 'r' + ownerId; } - var date = timestamp[0]; - var hour = timestamp[1]; - var minute = timestamp[2]; - if (ownerId == 0) - { - that.egw.open_link('calendar.calendar_uiforms.edit&date='+date+'&hour='+hour+'&minute='+minute,'_blank','700x700'); - } - else - { - that.egw.open_link('calendar.calendar_uiforms.edit&date='+date+'&hour='+hour+'&minute='+minute+'&owner='+ownerId,'_blank','700x700'); - } + that.egw.open(null, 'calendar', 'add', { + date: timestamp[0], + hour: timestamp[1], + minute: timestamp[2], + owner: ownerId + }, '_blank'); }); },