From a298c512659f38d8f16eb13a6c410c86a0a881d3 Mon Sep 17 00:00:00 2001 From: iflores Date: Fri, 30 Oct 2009 15:27:59 -0500 Subject: [PATCH] merge --- 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 43f5dcb1f5..8bdf5652bd 100755 --- a/main/newscorm/scorm_api.php +++ b/main/newscorm/scorm_api.php @@ -180,6 +180,7 @@ $(document).ready( function() { $(document).ready( function() { + $("iframe").contents().find('head').append(''); $("iframe#content_id").load( function(){ //alert("Document title: " + $("iframe#content_id").attr('src')); info_lms_item[0]=info_lms_item[1]; @@ -1592,7 +1593,6 @@ if(lms_lp_type==1 || lms_item_type=='asset'){ */ function attach_glossary_into_scorm() { var f = $('#content_id')[0]; - var doc = f.contentWindow ? f.contentWindow.document : f.contentDocument ? f.contentDocument : f.document; @@ -1614,11 +1614,12 @@ function attach_glossary_into_scorm() { if (datos.length==0) { return false; } + data_terms=datos.split("[|.|_|.|-|.|]"); for(i=0;i])'+specific_terms[1]+'[\ .,]{0,1}',"gi"); + var my_specific_terms = new RegExp(specific_terms[1],"gi"); new_html=my_text.replace(my_specific_terms,function(m){return replace_complete_char(m)}); $frame_content.html(new_html); my_text=$frame_content.html();