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
775757f1
Commit
775757f1
authored
Nov 06, 2006
by
Richard Mansfield
Browse files
Changed display of js error messages
parent
6a728d4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/js/mahara.js
View file @
775757f1
...
...
@@ -19,12 +19,20 @@ function displayMessage(m, /* optional */ elemid) {
color
=
'
green
'
;
}
else
if
(
m
.
type
==
'
info
'
)
{
color
=
'
#aa6;
'
;
//color = '#aa6;';
logDebug
(
m
.
message
);
return
;
}
if
(
typeof
(
elemid
)
==
'
undefined
'
)
{
elemid
=
'
messages
'
;
}
$
(
elemid
).
appendChild
(
DIV
({
'
style
'
:
'
color:
'
+
color
+
'
;
'
},
m
.
message
));
var
message
=
DIV
({
'
style
'
:
'
color:
'
+
color
+
'
;
'
},
m
.
message
);
appendChildNodes
(
elemid
,
message
);
callLater
(
2
,
function
()
{
removeElement
(
message
);
//fade(message);
});
}
...
...
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