From b9d32307a832448d24c87fcaa2bc021d5e43eebc Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Tue, 6 Dec 2022 17:01:00 +0000 Subject: [PATCH] fhemweb.js: cut Copy to forum at 50k, not 60 (Form #129858) git-svn-id: https://svn.fhem.de/fhem/trunk@26800 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/fhemweb.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fhem/www/pgm2/fhemweb.js b/fhem/www/pgm2/fhemweb.js index a778589ab..f0917eaed 100644 --- a/fhem/www/pgm2/fhemweb.js +++ b/fhem/www/pgm2/fhemweb.js @@ -1002,9 +1002,9 @@ FW_detLink() } else if(cmd == "forumCopy") { FW_cmd(FW_root+"?cmd=list -r -i "+dev+"&XHR=1", function(data) { var ta = document.createElement("textarea"); - if(data.length > 60*1000) { - data = data.substr(0,60*1000)+ - "\n# ... truncated to 60k, original length "+data.length; + if(data.length > 50*1000) { + data = data.substr(0,50*1000)+ + "\n# ... truncated to 50k, original length "+data.length; } ta.value = '[code]'+data+'[/code]'; document.body.appendChild(ta);