JavaScript und Umlaute in UTF-8-Codierung funktioniert nicht mit der JavaScript-Funkt...
[kivitendo-erp.git] / js / show_vc_details.js
index 5595e72..3e5bffc 100644 (file)
@@ -7,8 +7,8 @@ function show_vc_details(vc) {
     vc_id = vc_id[0].value;
   url = "common.pl?" +
     "action=show_vc_details&" +
-    "vc=" + escape(vc) + "&" +
-    "vc_id=" + escape(vc_id)
+    "vc=" + encodeURIComponent(vc) + "&" +
+    "vc_id=" + encodeURIComponent(vc_id)
   //alert(url);
   window.open(url, "_new_generic", parm);
 }