diff --git a/modules/data/webadmin/files/webadmin.js b/modules/data/webadmin/files/webadmin.js new file mode 100644 index 0000000000..4658620a6c --- /dev/null +++ b/modules/data/webadmin/files/webadmin.js @@ -0,0 +1,13 @@ +function floodprotection_change() { + var protection = document.getElementById('floodprotection_checkbox'); + var rate = document.getElementById('floodrate'); + var burst = document.getElementById('floodburst'); + if (protection.checked) { + rate.removeAttribute('disabled'); + burst.removeAttribute('disabled'); + } else { + rate.disabled = 'disabled'; + burst.disabled = 'disabled'; + } +} + diff --git a/modules/data/webadmin/tmpl/add_edit_network.tmpl b/modules/data/webadmin/tmpl/add_edit_network.tmpl index 0ed7a8ede6..a7b1edd568 100644 --- a/modules/data/webadmin/tmpl/add_edit_network.tmpl +++ b/modules/data/webadmin/tmpl/add_edit_network.tmpl @@ -1,3 +1,4 @@ + @@ -58,20 +59,6 @@
One server per line, host [[+]port] [password] -
Flood protection: