Skip to content

Commit

Permalink
Fix tab ui dlgopen top.restoreSession (openemr#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymiller committed Jan 1, 2017
1 parent d333d67 commit 6da73f4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions library/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ function grabfocus(w) {
// }
}

// call this when a "modal" dialog is desired


// Call this when a "modal" dialog is desired.
// Note that the below function is used for the
// frames ui, and that a separate dlgopen function
// is used below (see if(top.tab_mode)...) for the tabs ui.
function dlgopen(url, winname, width, height) {
if (top.modaldialog && ! top.modaldialog.closed) {
if (window.focus) top.modaldialog.focus();
Expand Down Expand Up @@ -92,6 +93,8 @@ if(top.tab_mode)
dlgOpenWindow=dlgopen;
dlgopen=function(url,winname,width,height,forceNewWindow)
{
top.restoreSession();

if(forceNewWindow)
{
return dlgOpenWindow(url,winname,width,height);
Expand Down

0 comments on commit 6da73f4

Please sign in to comment.