Javascript bug after login

bradymiller wrote on Tuesday, February 24, 2009:

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(){
    $("#min").click(function() { MinimizeFrame(this); });
    $("#max").click(function() { RestoreFrame(this); });
    $("#findpatients").click(function() { RestoreFrame(this); document.location.href=’…/calendar/find_patient.php?no_nav=1&mode=reset’; return true; });
   
    $(".noterow").mouseover(function() { $(this).toggleClass(“highlight”); });
    $(".noterow").mouseout(function() { $(this).toggleClass(“highlight”); });
    $(".noterow").click(function() { EditNote(this); });

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

cfapress wrote on Wednesday, February 25, 2009:

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