diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-25 19:48:05 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-25 19:48:05 +0000 |
commit | 38e7d55618d1ecf11daf6bf0e1ac979084ae76d8 (patch) | |
tree | 5c3304d0818612a50a68f991f90051aecaa2b394 | |
parent | c158266de3584d1e2bf884c8ec59befb8ef5f7ff (diff) | |
download | pfsense-38e7d55618d1ecf11daf6bf0e1ac979084ae76d8.zip pfsense-38e7d55618d1ecf11daf6bf0e1ac979084ae76d8.tar.gz |
MFC 7995
Add FieldValidate() JS function back - accidently removed in 1.28
-rwxr-xr-x | usr/local/www/wizard.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/local/www/wizard.php b/usr/local/www/wizard.php index 102a4ff..bfa6a30 100755 --- a/usr/local/www/wizard.php +++ b/usr/local/www/wizard.php @@ -148,6 +148,13 @@ include("head.inc"); <?php if($pkg['step'][$stepid]['fields']['field'] <> "") { ?> <script language="JavaScript"> <!-- + +function FieldValidate(userinput, regexp, message) +{ + if(!userinput.match(regexp)) + alert(message); +} + function enablechange() { <?php foreach($pkg['step'][$stepid]['fields']['field'] as $field) { |