Added javascript location.protocol for tooltip glossary

skala
Isaac Flores 16 years ago
parent 4a4c021857
commit cf62997ed0
  1. 4
      main/inc/lib/fckeditor/editor/plugins/glossary/fck_glossary_automatic.js
  2. 3
      main/inc/lib/fckeditor/editor/plugins/glossary/fck_glossary_manual.js

@ -1,13 +1,13 @@
$(document).ready(function() {
$(window).load(function () {
var my_text=$("body").html();
my_protocol = location.protocol;
$.ajax({
contentType: "application/x-www-form-urlencoded",
beforeSend: function(objeto) {
},
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_data=true",
success: function(datos) {
if (datos.length==0) {

@ -1,5 +1,6 @@
$(document).ready(function() {
$(window).load(function () {
my_protocol = location.protocol;
$("body .glossary").mouseover(function(){
is_glossary_name=$(this).html();
random_id=Math.round(Math.random()*100);
@ -14,7 +15,7 @@ $(document).ready(function() {
beforeSend: function(objeto) {
$("div#"+div_content_id).html("<img src=\'http://"+location.host+"/main/inc/lib/javascript/indicator.gif\' />"); },
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_name="+is_glossary_name,
success: function(datos) {
$("div#"+div_content_id).html(datos);

Loading…
Cancel
Save