fhemweb.js: remove inactive code

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@15554 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-12-04 20:01:08 +00:00
parent 683b59e279
commit 03e11fa8cd

View File

@ -142,20 +142,6 @@ FW_jqueryReadyFn()
}); });
}); });
// Replace the FORM-POST in detail-view by XHR
/* Inactive, as Internals and Attributes arent auto updated.
$("form input[type=submit]").click(function(e) {
var cmd = "";
$(this).parent().find("[name]").each(function() {
cmd += (cmd?"&":"")+$(this).attr("name")+"="+$(this).val();
});
if(cmd.indexOf("detail=") < 0)
return;
e.preventDefault();
FW_cmd(FW_root+"?"+cmd+"&XHR=1");
});
*/
$("form input.get[type=submit]").click(function(e) { //"get" via XHR to dialog $("form input.get[type=submit]").click(function(e) { //"get" via XHR to dialog
e.preventDefault(); e.preventDefault();
var cmd = "", el=this; var cmd = "", el=this;