diff --git a/fhem/www/pgm2/fhemweb.js b/fhem/www/pgm2/fhemweb.js index df51884d8..564a88899 100644 --- a/fhem/www/pgm2/fhemweb.js +++ b/fhem/www/pgm2/fhemweb.js @@ -118,6 +118,18 @@ FW_jqueryReadyFn() }); */ + $("form input.get[type=submit]").click(function(e) { //"get" via XHR to dialog + e.preventDefault(); + var cmd = "", el=this; + $(el).parent().find("input,[name]").each(function() { + cmd += (cmd?"&":"")+$(this).attr("name")+"="+$(this).val(); + }); + FW_cmd(FW_root+"?"+cmd+"&XHR=1", function(data) { + FW_okDialog('
'+data+'', el); + }); + }); + + $("#saveCheck") .css("cursor", "pointer") .click(function(){