Project

General

Profile

« Previous | Next » 

Revision 38e7d556

Added by Scott Ullrich over 19 years ago

MFC 7995
Add FieldValidate() JS function back - accidently removed in 1.28

View differences:

usr/local/www/wizard.php
148 148
<?php if($pkg['step'][$stepid]['fields']['field'] <> "") { ?>
149 149
<script language="JavaScript">
150 150
<!--
151

  
152
function  FieldValidate(userinput,  regexp,  message) 
153
{ 
154
                if(!userinput.match(regexp)) 
155
                                alert(message); 
156
} 
157

  
151 158
function enablechange() {
152 159
<?php
153 160
        foreach($pkg['step'][$stepid]['fields']['field'] as $field) {

Also available in: Unified diff