Skip to content

Commit

Permalink
Created an exception to the rule that clicking on form content goes t…
Browse files Browse the repository at this point in the history
…o view.php for editing.

This exception is for CAMOS, which has html links in it's content generated by report.php, to prevent
unexpected behavior when these links are clicked.
  • Loading branch information
markleeds committed Mar 31, 2009
1 parent c0e8162 commit 5c20e2a
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions interface/patient_file/encounter/forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,21 @@ function imdeleted() {
else continue;

// $form_info = getFormInfoById($iter['id']);
echo '<tr title="Edit form" '.
'id="'.$formdir.'~'.$iter['form_id'].'" class="text onerow">';
if (strtolower(substr($iter['form_name'],0,5)) == 'camos') {
//CAMOS generates links from report.php and these links should
//be clickable without causing view.php to come up unexpectedly.
//I feel that the JQuery code in this file leading to a click
//on the report.php content to bring up view.php steps on a
//form's autonomy to generate it's own html content in it's report
//but until any other form has a problem with this, I will just
//make an exception here for CAMOS and allow it to carry out this
//functionality for all other forms. --Mark
echo '<tr title="Edit form" '.
'id="'.$formdir.'~'.$iter['form_id'].'">';
} else {
echo '<tr title="Edit form" '.
'id="'.$formdir.'~'.$iter['form_id'].'" class="text onerow">';
}
$user = getNameFromUsername($iter['user']);

$form_name = ($formdir == 'newpatient') ? "Patient Encounter" : $iter['form_name'];
Expand Down

0 comments on commit 5c20e2a

Please sign in to comment.