Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move floodprotection js out of .tmpl
- Loading branch information
1 parent
1a8455b
commit ce6a9ce
Showing
2 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters