Center 'Edit series' popup in window

This commit is contained in:
Nathan Gray 2012-10-17 17:17:02 +00:00
parent 74c683f6b2
commit 789b51d5cd

View File

@ -1032,7 +1032,11 @@ function edit_series(id,date)
calendar_edit_id = id; calendar_edit_id = id;
calendar_edit_date = date; 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) function open_edit(series)
{ {