Commit 1415c9b1 authored by Nigel McNie's avatar Nigel McNie
Browse files
parents f4cce27d 264e31c2
......@@ -290,7 +290,13 @@ function profileform_submit(Pieform $form, $values) {
}
$smarty = smarty();
$smarty = smarty(array(), array(), array(
'mahara' => array(
'cannotremovedefaultemail',
'emailtoolong'
),
));
$smarty->assign('profileform', $profileform);
......
......@@ -26,7 +26,7 @@
var newEmail = {{$name}}_newrefinput.value;
if (typeof(newEmail) == 'string' && newEmail.length > 0) {
if (newEmail.length > 255) {
alert('{{str tag="emailtoolong"}}');
alert(get_string('emailtoolong'));
}
else {
appendChildNodes('{{$name}}_list', DIV({'class': 'unvalidated'},
......@@ -69,7 +69,7 @@
);
if (radio[0] && radio[0].checked) {
alert('{{str tag="cannotremovedefaultemail"}}');
alert(get_string('cannotremovedefaultemail'));
return;
}
......
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