mirror of https://github.com/Aidaho12/haproxy-wi
v8.0: Fix section value in admin settings and correct alert message
Removed the unnecessary section reassignment in admin_settings.js to ensure the correct section value is used. Also, corrected a minor formatting issue in the alert message within alerting.py for better readability.pull/399/head
parent
41a8c90556
commit
9148a31143
|
@ -78,9 +78,6 @@ function updateSettings(param, section, val) {
|
||||||
'param': param,
|
'param': param,
|
||||||
'value': val
|
'value': val
|
||||||
}
|
}
|
||||||
if (section === 'smon') {
|
|
||||||
section = 'rmon';
|
|
||||||
}
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "/admin/settings/" + section,
|
url: "/admin/settings/" + section,
|
||||||
data: JSON.stringify(json_data),
|
data: JSON.stringify(json_data),
|
||||||
|
|
Loading…
Reference in New Issue