ServerAPI-URL entfert, da nicht nötig wenn auf dem selben Host liegt

This commit is contained in:
Sven.Schmalle 2019-11-26 12:20:28 +01:00
parent b47af98017
commit 7eaf7e6b0c

View File

@ -12,8 +12,6 @@
<script src="/misc/jquery.min.js"></script>
<script type="text/javascript">
var ServerAPI="http://127.0.0.1:8000";
$(document).ready(function() {
@ -39,7 +37,7 @@
$.ajax({
method: "GET",
contentType:'application/json; charset=utf-8',
url: ServerAPI+'/folder/',
url: '/folder/',
dataType: "json",
data: "",
success: function(content){
@ -48,7 +46,7 @@
for ( var i = 0, l = content.length; i < l; i++ ) {
var ObjInhalt = content[i];
$("#Ordner").append(""+
"<img src=\""+ServerAPI+"/qr/"+encodeURIComponent(ServerAPI+"/?dir="+ObjInhalt)+"\" width=150 height=150>"+
"<img src=\"/qr/"+encodeURIComponent("/?dir="+ObjInhalt)+"\" width=150 height=150>"+
"<a href=\"#\" onclick=\"ShowFolderPics('"+ObjInhalt+"')\">"+
ObjInhalt+"</a><hr>");
}
@ -66,7 +64,7 @@
$.ajax({
method: "GET",
contentType:'application/json; charset=utf-8',
url: ServerAPI+'/folder/'+folder,
url: '/folder/'+folder,
dataType: "json",
data: "",
success: function(content){
@ -75,8 +73,8 @@
for ( var i = 0, l = content.length; i < l; i++ ) {
var ObjInhalt = content[i];
$("#Ordner").append(""+
"<img src=\""+ServerAPI+"/thumb/"+folder+"/"+ObjInhalt+"\" width=200>"+
"<a href=\""+ServerAPI+"/imgdl/"+folder+"/"+ObjInhalt+"\">"+
"<img src=\"/thumb/"+folder+"/"+ObjInhalt+"\" width=200>"+
"<a href=\"/imgdl/"+folder+"/"+ObjInhalt+"\">"+
ObjInhalt+"</a><hr>");
}
}