Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
a0bfe5d1
Commit
a0bfe5d1
authored
Dec 21, 2006
by
Nigel McNie
Committed by
Nigel McNie
Dec 21, 2006
Browse files
Changed the submit function to use the new pieform model for replying
to ajax posts. Corrected the blanking of the password fields
parent
5aa8aa02
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/account/index.php
View file @
a0bfe5d1
...
...
@@ -141,9 +141,9 @@ $smarty = smarty();
$smarty
->
assign
(
'form'
,
pieform
(
$prefsform
));
$smarty
->
assign
(
'INLINEJAVASCRIPT'
,
"
function clearPasswords() {
$('oldpassword').value = '';
$('password1').value = '';
$('password2').value = '';
$('
accountprefs_
oldpassword').value = '';
$('
accountprefs_
password1').value = '';
$('
accountprefs_
password2').value = '';
}"
);
$smarty
->
display
(
'account/index.tpl'
);
...
...
@@ -161,7 +161,7 @@ function accountprefs_validate(Pieform $form, $values) {
}
}
function
accountprefs_submit
(
$values
)
{
function
accountprefs_submit
(
$values
,
Pieform
$form
)
{
global
$USER
;
db_begin
();
...
...
@@ -185,8 +185,7 @@ function accountprefs_submit($values) {
}
db_commit
();
json_reply
(
false
,
get_string
(
'prefssaved'
,
'account'
));
exit
;
$form
->
json_reply
(
PIEFORM_OK
,
get_string
(
'prefssaved'
,
'account'
));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment