Improvements of glossary in extra tools

skala
Isaac Flores 16 years ago
parent 7bd7670336
commit 9fcfdb4ef9
  1. 2
      main/inc/lib/fckeditor/editor/plugins/glossary/fck_glossary_automatic.js
  2. 2
      main/inc/lib/javascript/glossary.js
  3. 2
      main/newscorm/scorm_api.php

@ -18,7 +18,7 @@ $(document).ready(function() {
data_terms=datas.split("[|.|_|.|-|.|]");
for(i=0;i<data_terms.length;i++) {
specific_terms=data_terms[i].split("__|__|");
var my_specific_terms = new RegExp('[^A-Za-z0-9/_\]('+specific_terms[1]+')',"gi");
var my_specific_terms = new RegExp('[^A-Za-z0-9/_\<>]('+specific_terms[1]+')',"");
new_html=my_text.replace(my_specific_terms,"<span class=\"glossary-ajax\" style='color:blue' name=\"link"+specific_terms[0]+"\">"+specific_terms[1]+"</span>");
$("body").html(new_html);
my_text=$("body").html();

@ -20,7 +20,7 @@ $(document).ready(function() {
for(i=0;i<data_terms.length;i++) {
specific_terms=data_terms[i].split("__|__|");
var my_specific_terms = new RegExp('[^A-Za-z0-9/_\]('+specific_terms[1]+')',"gi");
var my_specific_terms = new RegExp('([^A-Za-z0-9/_\<>])('+specific_terms[1]+')',"");
new_html=my_text.replace(my_specific_terms," <span class=\"glossary-ajax\" style='color:blue' name=\"link"+specific_terms[0]+"\">"+specific_terms[1]+"</span>");
$(".glossary-content").html(new_html);
my_text=$(".glossary-content").html();

@ -1617,7 +1617,7 @@ function attach_glossary_into_scorm() {
data_terms=datos.split("[|.|_|.|-|.|]");
for(i=0;i<data_terms.length;i++) {
specific_terms=data_terms[i].split("__|__|");
var my_specific_terms = new RegExp('[^A-Za-z0-9/_\]('+specific_terms[1]+')',"gi");
var my_specific_terms = new RegExp('[^A-Za-z0-9/_\<>]('+specific_terms[1]+')',"");
new_html=my_text.replace(my_specific_terms," <span style='color:blue' class=\"glossary-ajax\" name=\"link"+specific_terms[0]+"\" >"+specific_terms[1]+"</span>");
$frame_content.html(new_html);
my_text=$frame_content.html();

Loading…
Cancel
Save