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 3d709952f8..42beb0235f 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 @@ -7,7 +7,7 @@ $(document).ready(function() { beforeSend: function(objeto) { }, type: "POST", - url: "../../../main/glossary/glossary_ajax_request.php", + url: "http://"+location.host+"/main/glossary/glossary_ajax_request.php", data: "glossary_data=true", success: function(datos) { if (datos.length==0) { @@ -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: "../../../main/glossary/glossary_ajax_request.php", + url: "http://"+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 ad4dccc13f..2bd23273d9 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 @@ -12,9 +12,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: "../../../main/glossary/glossary_ajax_request.php", + url: "http://"+location.host+"/main/glossary/glossary_ajax_request.php", data: "glossary_name="+is_glossary_name, success: function(datos) { $("div#"+div_content_id).html(datos);