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
6e30f218
Commit
6e30f218
authored
Dec 21, 2006
by
Richard Mansfield
Browse files
Allow removal of upload status message
parent
38a7a4e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/js/file.js
View file @
6e30f218
...
@@ -405,8 +405,9 @@ function FileUploader(element, uploadscript, foldername, folderid, uploadcallbac
...
@@ -405,8 +405,9 @@ function FileUploader(element, uploadscript, foldername, folderid, uploadcallbac
// Display upload status
// Display upload status
insertSiblingNodesBefore
(
self
.
form
,
insertSiblingNodesBefore
(
self
.
form
,
DIV
({
'
id
'
:
'
uploadstatusline
'
+
self
.
nextupload
},
IMG
({
'
src
'
:
config
.
themeurl
+
'
loading.gif
'
}),
DIV
({
'
id
'
:
'
uploadstatusline
'
+
self
.
nextupload
},
get_string
(
'
uploadingfiletofolder
'
,
localname
,
self
.
foldername
)));
IMG
({
'
src
'
:
config
.
themeurl
+
'
loading.gif
'
}),
'
'
,
get_string
(
'
uploadingfiletofolder
'
,
localname
,
self
.
foldername
)));
self
.
nextupload
+=
1
;
self
.
nextupload
+=
1
;
return
true
;
return
true
;
}
}
...
@@ -418,8 +419,12 @@ function FileUploader(element, uploadscript, foldername, folderid, uploadcallbac
...
@@ -418,8 +419,12 @@ function FileUploader(element, uploadscript, foldername, folderid, uploadcallbac
else
{
else
{
var
image
=
'
failure.gif
'
;
var
image
=
'
failure.gif
'
;
}
}
replaceChildNodes
(
$
(
'
uploadstatusline
'
+
data
.
uploadnumber
),
replaceChildNodes
(
$
(
'
uploadstatusline
'
+
data
.
uploadnumber
),
IMG
({
'
src
'
:
config
.
themeurl
+
image
}),
data
.
message
);
IMG
({
'
src
'
:
config
.
themeurl
+
image
}),
'
'
,
data
.
message
,
'
'
,
A
({
'
style
'
:
'
cursor: pointer;
'
,
'
onclick
'
:
'
removeElement(this.parentNode)
'
},
'
[X]
'
));
this
.
uploadcallback
(
data
);
this
.
uploadcallback
(
data
);
}
}
...
...
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