瀏覽代碼

manuel was machst du? so wie es bei dir war waren die parameter ja doppelt urlencodet?

Juergen 'eTM' Mangler 1 年之前
父節點
當前提交
c35e2691e3
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      template/js/ui.js

+ 1 - 4
template/js/ui.js

@@ -58,7 +58,7 @@ function makeFrame(lx, ly, rx, ry, content = "", id = "", defaultpara = "", show
     //$(".item" + lx + "-" + ly).css({"display": "block", "border-style": "solid", "border-color": "blue", "grid-column": (lx+1) + " / span " + (rx-lx+1),  "grid-row": ly+1 + " / span " + (ry-ly+1)});
 
     if(content != null && content != ""){
-      var fullurl = content;
+      var fullurl = encodeURI(content);
       //encode default parameter in URL
       if(defaultpara != "{}"){
         var fullurl = fullurl + "?";
@@ -70,9 +70,6 @@ function makeFrame(lx, ly, rx, ry, content = "", id = "", defaultpara = "", show
         fullurl = fullurl.slice(0, -1);
       }
 
-
-
-      fullurl = encodeURI(fullurl);
       $(".item" + lx + "-" + ly).html("<iframe name='" + id +"' id='" + id +"' src='" + fullurl + "' title='' frameBorder='0' ></iframe>");
 
       if(showbutton){