# Javascript bug after login

**URL:** <https://community.open-emr.org/t/javascript-bug-after-login/7667>\
**Category:** OpenEMR Development\
**Created:** [February 24, 2009, 9:11pm UTC](https://community.open-emr.org/t/javascript-bug-after-login/7667 "2009-02-24T21:11:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [February 24, 2009, 9:11pm UTC](https://community.open-emr.org/t/javascript-bug-after-login/7667/1 "2009-02-24T21:11:01Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Tuesday, February 24, 2009](https://sourceforge.net/p/openemr/discussion/202506/thread/eccaa415/#6730):

hey,

Happens in both Firefox 3 and IE7. After login, both report problems with frmset (frmset is null) in the openemr/interface/main/authorizations/authorizations.php file and point to this part of code:  
/\* added to adjust the height of this frame by the min/max buttons \*/  
var origRows = null;  
$(document).ready(function(){  
&nbsp;&nbsp;&nbsp; $("#min").click(function() { MinimizeFrame(this); });  
&nbsp;&nbsp;&nbsp; $("#max").click(function() { RestoreFrame(this); });  
&nbsp;&nbsp;&nbsp; $("#findpatients").click(function() { RestoreFrame(this); document.location.href=’…/calendar/find\_patient.php?no\_nav=1&mode=reset’; return true; });  
&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp; $(".noterow").mouseover(function() { $(this).toggleClass(“highlight”); });  
&nbsp;&nbsp;&nbsp; $(".noterow").mouseout(function() { $(this).toggleClass(“highlight”); });  
&nbsp;&nbsp;&nbsp; $(".noterow").click(function() { EditNote(this); });

&nbsp;&nbsp;&nbsp; var frmset = parent.document.getElementById(‘Main’);  
&nbsp;&nbsp;&nbsp; origRows = frmset.rows;&nbsp; // save the original frameset sizes  
});

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [February 25, 2009, 3:13pm UTC](https://community.open-emr.org/t/javascript-bug-after-login/7667/2 "2009-02-25T15:13:24Z")

</div>

**[cfapress](https://sourceforge.net/u/cfapress/)** wrote on [Wednesday, February 25, 2009](https://sourceforge.net/p/openemr/discussion/202506/thread/eccaa415/#6730/55d1):

Thanks for the note. It shouldn’t be affecting the behavior of the program. However, I’ve got in and added some PHP conditional statements to exclude the Javascript when you’re not using the concurrent layout (i.e. Classic Style with the menu at the top). The code changes are in CVS.

Jason
