Added absolute url for tooltip in glossary with javascript - partial DT #1862

skala
Cristian Fasanando 16 years ago
parent 576de88553
commit c89c08482b
  1. 6
      main/inc/lib/fckeditor/editor/plugins/glossary/fck_glossary_automatic.js
  2. 4
      main/inc/lib/fckeditor/editor/plugins/glossary/fck_glossary_manual.js

@ -7,7 +7,7 @@ $(document).ready(function() {
beforeSend: function(objeto) { beforeSend: function(objeto) {
}, },
type: "POST", type: "POST",
url: "../../../main/glossary/glossary_ajax_request.php", url: "http://"+location.host+"/main/glossary/glossary_ajax_request.php",
data: "glossary_data=true", data: "glossary_data=true",
success: function(datos) { success: function(datos) {
if (datos.length==0) { if (datos.length==0) {
@ -35,9 +35,9 @@ $(document).ready(function() {
$.ajax({ $.ajax({
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
beforeSend: function(objeto) { beforeSend: function(objeto) {
$("div#"+div_content_id).html("<img src=\'../../../main/inc/lib/javascript/indicator.gif\' />"); }, $("div#"+div_content_id).html("<img src=\'http://"+location.host+"/main/inc/lib/javascript/indicator.gif\' />"); },
type: "POST", 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, data: "glossary_id="+my_glossary_id,
success: function(datos) { success: function(datos) {
$("div#"+div_content_id).html(datos); $("div#"+div_content_id).html(datos);

@ -12,9 +12,9 @@ $(document).ready(function() {
$.ajax({ $.ajax({
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
beforeSend: function(objeto) { beforeSend: function(objeto) {
$("div#"+div_content_id).html("<img src=\'../../../main/inc/lib/javascript/indicator.gif\' />"); }, $("div#"+div_content_id).html("<img src=\'http://"+location.host+"/main/inc/lib/javascript/indicator.gif\' />"); },
type: "POST", 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, data: "glossary_name="+is_glossary_name,
success: function(datos) { success: function(datos) {
$("div#"+div_content_id).html(datos); $("div#"+div_content_id).html(datos);

Loading…
Cancel
Save