2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

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
This commit is contained in:
rudolfkoenig 2022-12-06 17:01:00 +00:00
parent e8da3254f0
commit b9d32307a8

View File

@ -1002,9 +1002,9 @@ FW_detLink()
} else if(cmd == "forumCopy") { } else if(cmd == "forumCopy") {
FW_cmd(FW_root+"?cmd=list -r -i "+dev+"&XHR=1", function(data) { FW_cmd(FW_root+"?cmd=list -r -i "+dev+"&XHR=1", function(data) {
var ta = document.createElement("textarea"); var ta = document.createElement("textarea");
if(data.length > 60*1000) { if(data.length > 50*1000) {
data = data.substr(0,60*1000)+ data = data.substr(0,50*1000)+
"\n# ... truncated to 60k, original length "+data.length; "\n# ... truncated to 50k, original length "+data.length;
} }
ta.value = '[code]'+data+'[/code]'; ta.value = '[code]'+data+'[/code]';
document.body.appendChild(ta); document.body.appendChild(ta);