mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
fhemweb.js: fix get # and co (Forum #57562)
git-svn-id: https://svn.fhem.de/fhem/trunk@12171 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
318e1f383d
commit
9190182dda
@ -157,7 +157,7 @@ FW_jqueryReadyFn()
|
|||||||
} else if(val.match(/^\s*get\s+/)) {
|
} else if(val.match(/^\s*get\s+/)) {
|
||||||
// make get use xhr instead of reload
|
// make get use xhr instead of reload
|
||||||
//return true;
|
//return true;
|
||||||
FW_cmd(FW_root+"?cmd="+val+"&XHR=1", function(data) {
|
FW_cmd(FW_root+"?cmd="+encodeURIComponent(val)+"&XHR=1", function(data){
|
||||||
if( !data.match( /^<html>.*<\/html>/ ) ) {
|
if( !data.match( /^<html>.*<\/html>/ ) ) {
|
||||||
data = data.replace( '<', '<' );
|
data = data.replace( '<', '<' );
|
||||||
data = '<pre>'+data+'</pre>';
|
data = '<pre>'+data+'</pre>';
|
||||||
|
Loading…
Reference in New Issue
Block a user