X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/26e884f38679c47356f79b724cc592b4503ac307..0534e31033f43074b6e4ae2a1178609bd15e9813:/js/common.js diff --git a/js/common.js b/js/common.js index e1037d70f..6d818f312 100644 --- a/js/common.js +++ b/js/common.js @@ -38,18 +38,13 @@ function centerParms(width,height,extra) { return string; } -function escape_more(s) { - s = escape(s); - return s.replace(/\+/g, '%2b'); -} - function set_longdescription_window(input_name) { var parm = centerParms(600,500) + ",width=600,height=500,status=yes,scrollbars=yes"; var name = document.getElementsByName(input_name)[0].value; url = "common.pl?" + "action=set_longdescription&" + - "longdescription=" + escape_more(document.getElementsByName(input_name)[0].value) + "&" + - "input_name=" + escape_more(input_name) + "&" + "longdescription=" + encodeURIComponent(document.getElementsByName(input_name)[0].value) + "&" + + "input_name=" + encodeURIComponent(input_name) + "&" window.open(url, "_new_generic", parm); }