From c89c08482b408194e3f6fb400ca3199b34175c3c Mon Sep 17 00:00:00 2001 From: Cristian Fasanando Date: Tue, 8 Sep 2009 17:33:04 -0500 Subject: [PATCH] Added absolute url for tooltip in glossary with javascript - partial DT #1862 --- .../plugins/glossary/fck_glossary_automatic.js | 12 ++++++------ .../editor/plugins/glossary/fck_glossary_manual.js | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) 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);