Преглед изворни кода

Added javascript location.protocol

Isaac Flores пре 15 година
родитељ
комит
b088fc1476

+ 2 - 2
main/inc/lib/fckeditor/editor/plugins/glossary/fck_glossary_automatic.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);

+ 1 - 1
main/inc/lib/fckeditor/editor/plugins/glossary/fck_glossary_manual.js

@@ -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,