2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-18 05:56:03 +00:00

fhemweb.js: fix get for special chars (#) in detail (Forum #57562)

git-svn-id: https://svn.fhem.de/fhem/trunk@12182 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-09-20 07:08:12 +00:00
parent 8febfc629a
commit 8ed704a9be

View File

@ -125,7 +125,8 @@ FW_jqueryReadyFn()
e.preventDefault();
var cmd = "", el=this;
$(el).parent().find("input,[name]").each(function() {
cmd += (cmd?"&":"")+$(this).attr("name")+"="+$(this).val();
cmd += (cmd?"&":"")+encodeURIComponent($(this).attr("name"))+
"="+encodeURIComponent($(this).val());
});
FW_cmd(FW_root+"?"+cmd+"&XHR=1&addLinks=1", function(data) {
if(!data.match(/^[\r\n]*$/)) // ignore empty answers