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..3736e674f1 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
@@ -6,8 +6,8 @@ $(document).ready(function() {
contentType: "application/x-www-form-urlencoded",
beforeSend: function(objeto) {
},
- type: "POST",
- url: "../../../main/glossary/glossary_ajax_request.php",
+ type: "POST",
+ url: "http://"+location.host+"/main/glossary/glossary_ajax_request.php",
data: "glossary_data=true",
success: function(datos) {
if (datos.length==0) {
@@ -34,10 +34,10 @@ $(document).ready(function() {
my_glossary_id=data_notebook[1];
$.ajax({
contentType: "application/x-www-form-urlencoded",
- beforeSend: function(objeto) {
- $("div#"+div_content_id).html("
"); },
- type: "POST",
- url: "../../../main/glossary/glossary_ajax_request.php",
+ beforeSend: function(objeto) {
+ $("div#"+div_content_id).html("
"); },
+ type: "POST",
+ 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..e53023ac08 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
@@ -11,10 +11,10 @@ $(document).ready(function() {
$.ajax({
contentType: "application/x-www-form-urlencoded",
- beforeSend: function(objeto) {
- $("div#"+div_content_id).html("
"); },
- type: "POST",
- url: "../../../main/glossary/glossary_ajax_request.php",
+ beforeSend: function(objeto) {
+ $("div#"+div_content_id).html("
"); },
+ type: "POST",
+ 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);