Commit 62d3e7e3 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix js errors

parent c10cd2ed
......@@ -85,7 +85,7 @@ $elements['submit'] = array(
);
$prefsform = array(
$prefsform = pieform(array(
'name' => 'activityprefs',
'method' => 'post',
'jsform' => true,
......@@ -93,11 +93,11 @@ $prefsform = array(
'plugintype ' => 'core',
'pluginname' => 'account',
'elements' => $elements,
);
));
$smarty = smarty();
$smarty->assign('prefsdescr', get_string('prefsdescr', 'activity'));
$smarty->assign('form', pieform($prefsform));
$smarty->assign('form', $prefsform);
$smarty->assign('heading', get_string('activityprefs'));
$smarty->display('account/activity/preferences/index.tpl');
......
......@@ -224,9 +224,10 @@ function accountprefs_submit(Pieform $form, $values) {
$prefsform = pieform($prefsform);
$smarty = smarty();
$smarty->assign('form', pieform($prefsform));
$smarty->assign('form', $prefsform);
$smarty->assign('INLINEJAVASCRIPT', "
function clearPasswords(form, data) {
formSuccess(form, data);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment