Added javascript location.protocol

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

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

@ -13,7 +13,7 @@ $(document).ready(function() {
$.ajax({
contentType: "application/x-www-form-urlencoded",
beforeSend: function(objeto) {
$("div#"+div_content_id).html("<img src=\'http://"+location.host+"/main/inc/lib/javascript/indicator.gif\' />"); },
$("div#"+div_content_id).html("<img src="+my_protocol+"//"+location.host+"/main/inc/lib/javascript/indicator.gif />"); },
type: "POST",
url: my_protocol+"//"+location.host+"/main/glossary/glossary_ajax_request.php",
data: "glossary_name="+is_glossary_name,

Loading…
Cancel
Save