Update to v0.1
This commit is contained in:
13
modules/webadmin/files/webadmin.js
Normal file
13
modules/webadmin/files/webadmin.js
Normal file
@@ -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';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user