projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 34134 - updated select invoice to actually pay the invoice being selected not...
[freeside.git]
/
httemplate
/
elements
/
change_password.html
diff --git
a/httemplate/elements/change_password.html
b/httemplate/elements/change_password.html
index
463384f
..
7d95e19
100644
(file)
--- a/
httemplate/elements/change_password.html
+++ b/
httemplate/elements/change_password.html
@@
-13,7
+13,7
@@
% }
<DIV ID="<%$pre%>form" CLASS="passwordbox">
% if (!$opt{'noformtag'}) {
% }
<DIV ID="<%$pre%>form" CLASS="passwordbox">
% if (!$opt{'noformtag'}) {
- <FORM METHOD="POST" ACTION="<%$fsurl%>misc/process/change-password.html">
+ <FORM METHOD="POST" ACTION="<%$fsurl%>misc/process/change-password.html"
onsubmit="return checkPasswordValidation()"
>
% }
<% $change_id_input %>
% }
<% $change_id_input %>
@@
-33,9
+33,6
@@
'contactnum' => $opt{'contact_num'},
'submitid' => $change_button_id,
&>
'contactnum' => $opt{'contact_num'},
'submitid' => $change_button_id,
&>
-% if ( $error ) {
- <BR><SPAN STYLE="color: #ff0000"><% $error |h %></SPAN>
-% }
% if (!$opt{'noformtag'}) {
</FORM>
% if (!$opt{'noformtag'}) {
</FORM>
@@
-58,6
+55,16
@@
function <%$pre%>toggle(toggle, clear) {
toggle ? 'none' : 'inline';
% }
}
toggle ? 'none' : 'inline';
% }
}
+
+function checkPasswordValidation() {
+ var validationResult = document.getElementById('<%$pre%>password_result').innerHTML;
+ if (validationResult.match(/Password valid!/)) {
+ return true;
+ }
+ else {
+ return false;
+ }
+}
</SCRIPT>
<%init>
my %opt = @_;
</SCRIPT>
<%init>
my %opt = @_;