unnecessary logs and functions
This commit is contained in:
@@ -28,43 +28,13 @@ $(document).ready(function () {
|
||||
$(document).on("click", "#scfg", function () {
|
||||
$("#m-t").html("Site settings");
|
||||
var h = "<h3>Password settings</h3>";
|
||||
h += c_txt(
|
||||
"opswd",
|
||||
"Old password",
|
||||
"Please put old password (four digits)",
|
||||
"",
|
||||
"password"
|
||||
);
|
||||
h += c_txt(
|
||||
"npswd",
|
||||
"New password",
|
||||
"Please put new password (four digits)",
|
||||
"",
|
||||
"password"
|
||||
);
|
||||
h += c_txt(
|
||||
"npsch",
|
||||
"New password check",
|
||||
"New passwords check failed",
|
||||
"",
|
||||
"password"
|
||||
);
|
||||
h += c_txt("opswd","Old password","Please put old password (four digits)","","password");
|
||||
h += c_txt("npswd","New password","Please put new password (four digits)","","password");
|
||||
h += c_txt("npsch","New password check","New passwords check failed","","password");
|
||||
h += "<br><h3>Simulator</h3>";
|
||||
h += c_btn("Reset demo values", "btnresetdemo", " btnresetdemo");
|
||||
h += c_rad(
|
||||
"iforte_demo_rains_age",
|
||||
"RAINS tubes age",
|
||||
["New", "Average", "Old"],
|
||||
"",
|
||||
""
|
||||
);
|
||||
h += c_rad(
|
||||
"iforte_demo_pressure_test",
|
||||
"Pressure test",
|
||||
["OK", "Failing"],
|
||||
"",
|
||||
""
|
||||
);
|
||||
h += c_rad("iforte_demo_rains_age","RAINS tubes age",["New", "Average", "Old"],"","");
|
||||
h += c_rad("iforte_demo_pressure_test","Pressure test",["OK", "Failing"],"","");
|
||||
$("#m-b").html(h);
|
||||
$(".sb").unbind();
|
||||
copy_form_values(2);
|
||||
@@ -79,16 +49,7 @@ $(document).ready(function () {
|
||||
"iforte_demo_rains_age",
|
||||
"iforte_demo_pressure_test",
|
||||
];
|
||||
do_ajax("/set_cfg", pv(par), function (json) {
|
||||
if (json) {
|
||||
if (json["status"] == 0) {
|
||||
close_modal();
|
||||
location = "/";
|
||||
}
|
||||
show_errors(json["status"], par);
|
||||
loader(0);
|
||||
}
|
||||
});
|
||||
do_ajax("/set_cfg", serialize_parameters(par));
|
||||
});
|
||||
});
|
||||
|
||||
@@ -254,9 +215,8 @@ function do_ajax(p_url, p_data) {
|
||||
|
||||
default:
|
||||
for (const [key, value] of Object.entries(p_data)) {
|
||||
//sessionStorage.setItem(key, value)
|
||||
console.log("key: %o", key);
|
||||
console.log("val: %o", value);
|
||||
sessionStorage.setItem(key, value)
|
||||
console.log("set key: " + key + " to val: " + value);
|
||||
|
||||
if (key == "iforte_tmpu") {
|
||||
if (value == 0) {
|
||||
|
||||
Reference in New Issue
Block a user