diff --git a/main/inc/lib/fckeditor/editor/plugins/glossary/fck_glossary_automatic.js b/main/inc/lib/fckeditor/editor/plugins/glossary/fck_glossary_automatic.js index 654d4494d0..8711a5b09f 100755 --- a/main/inc/lib/fckeditor/editor/plugins/glossary/fck_glossary_automatic.js +++ b/main/inc/lib/fckeditor/editor/plugins/glossary/fck_glossary_automatic.js @@ -35,9 +35,9 @@ $(document).ready(function() { $.ajax({ contentType: "application/x-www-form-urlencoded", beforeSend: function(objeto) { - $("div#"+div_content_id).html(""); }, + $("div#"+div_content_id).html(""); }, type: "POST", - url: "http://"+location.host+"/main/glossary/glossary_ajax_request.php", + url: my_protocol+"//"+location.host+"/main/glossary/glossary_ajax_request.php", data: "glossary_id="+my_glossary_id, success: function(datos) { $("div#"+div_content_id).html(datos); diff --git a/main/inc/lib/fckeditor/editor/plugins/glossary/fck_glossary_manual.js b/main/inc/lib/fckeditor/editor/plugins/glossary/fck_glossary_manual.js index cf58ea9e51..487fd3302d 100755 --- a/main/inc/lib/fckeditor/editor/plugins/glossary/fck_glossary_manual.js +++ b/main/inc/lib/fckeditor/editor/plugins/glossary/fck_glossary_manual.js @@ -13,7 +13,7 @@ $(document).ready(function() { $.ajax({ contentType: "application/x-www-form-urlencoded", beforeSend: function(objeto) { - $("div#"+div_content_id).html(""); }, + $("div#"+div_content_id).html(""); }, type: "POST", url: my_protocol+"//"+location.host+"/main/glossary/glossary_ajax_request.php", data: "glossary_name="+is_glossary_name,