diff options
Diffstat (limited to 'httemplate/edit/cust_main-contacts.html')
| -rw-r--r-- | httemplate/edit/cust_main-contacts.html | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/httemplate/edit/cust_main-contacts.html b/httemplate/edit/cust_main-contacts.html index 3783cb9e9..abef7505d 100644 --- a/httemplate/edit/cust_main-contacts.html +++ b/httemplate/edit/cust_main-contacts.html @@ -5,18 +5,20 @@ this one isn't being maintained well. :/ </%doc> - <SCRIPT> -function checkPasswordValidation(fieldid) { - var validationResult = document.getElementById(fieldid+'_result').innerHTML; - if (validationResult.match(/Password valid!/)) { - return true; +<SCRIPT> + function checkPasswordValidation(fieldid) { + var validationResult = document.getElementById(fieldid+'_result').innerHTML; + if (validationResult.match(/Password valid!/)) { + return true; + } + else { + return false; + } } - else { - return false; - } -} </SCRIPT> +<& '/elements/validate_password_js.html', &> + <& elements/edit.html, 'name_singular' => 'customer contacts', #yes, we're editing all of them 'table' => 'cust_main', @@ -58,6 +60,13 @@ function checkPasswordValidation(fieldid) { my $curuser = $FS::CurrentUser::CurrentUser; my $conf = new FS::Conf; +if ( $cgi->param('redirect') ) { + my $session = $cgi->param('redirect'); + my $pref = $curuser->option("redirect$session"); + die "unknown redirect session $session\n" unless length($pref); + $cgi = new CGI($pref); +} + my $custnum; if ( $cgi->param('error') ) { $custnum = scalar($cgi->param('custnum')); |
