projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
has no meaning to close the location standardize popup until its ready
[freeside.git]
/
httemplate
/
elements
/
validate_password.html
diff --git
a/httemplate/elements/validate_password.html
b/httemplate/elements/validate_password.html
index
f067ad8
..
a488c4f
100644
(file)
--- a/
httemplate/elements/validate_password.html
+++ b/
httemplate/elements/validate_password.html
@@
-5,9
+5,8
@@
To validate passwords via javascript/xmlhttp:
<INPUT ID="password_field" TYPE="text">
<DIV ID="password_field_result">
<& '/elements/validate_password.html',
<INPUT ID="password_field" TYPE="text">
<DIV ID="password_field_result">
<& '/elements/validate_password.html',
- fieldid => 'password_field',
- svcnum => $svcnum,
- pkgnum => $pkgnum, # used if the service doesn't exist yet
+ fieldid => 'password_field',
+ svcnum => $svcnum
&>
The ID of the input field can be anything; the ID of the DIV in which to display results
&>
The ID of the input field can be anything; the ID of the DIV in which to display results
@@
-28,10
+27,7
@@
function add_password_validation (fieldid) {
var resultfield = document.getElementById(fieldid);
if (this.value) {
resultfield.innerHTML = '<SPAN STYLE="color: blue;">Validating password...</SPAN>';
var resultfield = document.getElementById(fieldid);
if (this.value) {
resultfield.innerHTML = '<SPAN STYLE="color: blue;">Validating password...</SPAN>';
- validate_password('fieldid',fieldid,
- 'svcnum',<% $opt{'svcnum'} |js_string %>,
- 'pkgnum',<% $opt{'pkgnum'} |js_string %>,
- 'password',this.value,
+ validate_password('fieldid',fieldid,'svcnum','<% $opt{'svcnum'} %>','password',this.value,
function (result) {
result = JSON.parse(result);
var resultfield = document.getElementById(result.fieldid);
function (result) {
result = JSON.parse(result);
var resultfield = document.getElementById(result.fieldid);