From b19902e9a6f5ae49c9c19d9b00c2b2a67e2cf3ec Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Mon, 4 Dec 2006 18:07:45 +0100 Subject: [PATCH] [svn r10286] fix a refresh bug with ie in learnpath --- main/newscorm/scorm_api.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/newscorm/scorm_api.php b/main/newscorm/scorm_api.php index e72cddbd84..c6b77b2318 100644 --- a/main/newscorm/scorm_api.php +++ b/main/newscorm/scorm_api.php @@ -825,10 +825,11 @@ function switch_item(current_item, next_item){ } //(4) refresh the audiorecorder if needed - if(document.getElementById('audiorecorder_id')){ - document.getElementById('audiorecorder_id').location.reload(); + if(frames['audiorecorder_name']){ + frames['audiorecorder_name'].location.reload(); } + return true; } //addEvent(window,'load',addListeners,false);