summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizard.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-25 19:48:05 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-25 19:48:05 +0000
commit38e7d55618d1ecf11daf6bf0e1ac979084ae76d8 (patch)
tree5c3304d0818612a50a68f991f90051aecaa2b394 /usr/local/www/wizard.php
parentc158266de3584d1e2bf884c8ec59befb8ef5f7ff (diff)
downloadpfsense-38e7d55618d1ecf11daf6bf0e1ac979084ae76d8.zip
pfsense-38e7d55618d1ecf11daf6bf0e1ac979084ae76d8.tar.gz
MFC 7995
Add FieldValidate() JS function back - accidently removed in 1.28
Diffstat (limited to 'usr/local/www/wizard.php')
-rwxr-xr-xusr/local/www/wizard.php7
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) {
OpenPOWER on IntegriCloud