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
63fde95c
Commit
63fde95c
authored
Mar 03, 2008
by
Nigel McNie
Browse files
Prevent a javascript error when attaching a file to a new blog post.
parent
25204780
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/blog/post.php
View file @
63fde95c
...
...
@@ -260,6 +260,14 @@ function attachtopost(data) {
return;
}
var ext = data.oldextension ? data.oldextension : '';
var tags;
if (typeof(data.tags) == "string") {
tags = data.tags;
}
else {
tags = data.tags.join(', ');
}
appendChildNodes(
attached.tbody,
TR(
...
...
@@ -270,7 +278,7 @@ function attachtopost(data) {
IMG({'src':get_themeurl('images/'+data.artefacttype+'.gif'), 'alt':data.artefacttype}),
data.title,
data.description,
data.tags.join(', ')
,
tags
,
[SPAN({'style':'display: none;'}, ext),
INPUT(
{'type':'button', 'class':'button', 'value':{$getstring['remove']},
...
...
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