From 789b51d5cd77f04b2f918e93b1a1dee61dc15685 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 17 Oct 2012 17:17:02 +0000 Subject: [PATCH] Center 'Edit series' popup in window --- calendar/inc/class.calendar_uiviews.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_uiviews.inc.php b/calendar/inc/class.calendar_uiviews.inc.php index 215838c92f..84a66a0136 100644 --- a/calendar/inc/class.calendar_uiviews.inc.php +++ b/calendar/inc/class.calendar_uiviews.inc.php @@ -1032,7 +1032,11 @@ function edit_series(id,date) calendar_edit_id = id; calendar_edit_date = date; - document.getElementById("edit_series").style.display = "inline"; + var popup = jQuery("#edit_series").show(); + popup.css({ + top: $j(window).height()/2-popup.height()/2, + left: $j(window).width()/2-popup.width()/2 + }); } function open_edit(series) {