Skip to content

Commit

Permalink
fix: firefox close dialog from cdr edit source (openemr#7788)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwaite authored Oct 29, 2024
1 parent 5859254 commit 35d736f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion interface/patient_file/summary/demographics.php
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ function load_location(location) {
}
let data = event.data;
if (data && data.type === 'cdr-edit-source') {
window.name = event.source.name;
dlgclose();
window.top.removeEventListener('message', windowMessageHandler);
// loadFrame already handles webroot and /interface/ prefix.
Expand All @@ -658,7 +659,7 @@ function load_location(location) {
};
window.top.addEventListener('message', windowMessageHandler);

dlgopen('', '', 800, 200, '', '', {
dlgopen('', 'cdrEditSource', 800, 200, '', '', {
buttons: [{
text: <?php echo xlj('Close'); ?>,
close: true,
Expand Down

0 comments on commit 35d736f

Please sign in to comment.