From 1b1178dcbd0bbc4f0f3e1c22ceecf84a297a391d Mon Sep 17 00:00:00 2001 From: bradymiller Date: Mon, 31 May 2010 19:16:14 +0000 Subject: [PATCH] Feature to add new patient info from calender pop up - contributed by Visolve --- interface/main/calendar/add_edit_event.php | 18 +++++++++++++++++- interface/main/calendar/find_patient_popup.php | 23 ++++++++++++++++++++++- interface/new/new_comprehensive.php | 7 +++++++ interface/patient_file/summary/demographics.php | 9 ++++++++- 4 files changed, 54 insertions(+), 3 deletions(-) diff --git a/interface/main/calendar/add_edit_event.php b/interface/main/calendar/add_edit_event.php index ab01f906c..30e1df767 100644 --- a/interface/main/calendar/add_edit_event.php +++ b/interface/main/calendar/add_edit_event.php @@ -1149,6 +1149,22 @@ if ( $eid ) { // editing case
+ + + + // refresh and redirect the parent window + if (!opener.closed && opener.refreshme) opener.refreshme(); + top.restoreSession(); + opener.document.location="../../new/new.php"; + // Close the window + window.close(); +'; +} +?> + @@ -1715,5 +1731,5 @@ function SubmitForm() { } - + diff --git a/interface/main/calendar/find_patient_popup.php b/interface/main/calendar/find_patient_popup.php index 20d866791..b763cc647 100644 --- a/interface/main/calendar/find_patient_popup.php +++ b/interface/main/calendar/find_patient_popup.php @@ -122,6 +122,20 @@ form { + + + // Pass the variable to parent hidden type and submit + opener.document.theform.resname.value = "noresult"; + opener.document.theform.submit(); + // Close the window + window.self.close(); +'; +} +?> +