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
5a5df6df
Commit
5a5df6df
authored
Apr 07, 2009
by
Richard Mansfield
Browse files
Cancel upload button no longer required
parent
739de1a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/js/filebrowser.js
View file @
5a5df6df
...
...
@@ -29,7 +29,6 @@ function FileBrowser(idprefix, folderid, config, globalconfig) {
this
.
upload_init
=
function
()
{
if
(
$
(
self
.
id
+
'
_notice
'
))
{
setNodeAttribute
(
self
.
id
+
'
_userfile
'
,
'
disabled
'
,
true
);
addElementClass
(
self
.
id
+
'
_uploadcancel
'
,
'
hidden
'
);
}
if
(
!
$
(
self
.
id
+
'
_upload
'
))
{
appendChildNodes
(
self
.
form
,
INPUT
({
...
...
@@ -53,13 +52,6 @@ function FileBrowser(idprefix, folderid, config, globalconfig) {
setNodeAttribute
(
self
.
id
+
'
_userfile
'
,
'
disabled
'
,
true
);
}
});
connect
(
self
.
id
+
'
_uploadcancel
'
,
'
onclick
'
,
function
()
{
removeElementClass
(
self
.
id
+
'
_openbutton
'
,
'
hidden
'
);
addElementClass
(
self
.
id
+
'
_agreement
'
,
'
hidden
'
);
$
(
self
.
id
+
'
_notice
'
).
checked
=
false
;
setNodeAttribute
(
self
.
id
+
'
_userfile
'
,
'
disabled
'
,
true
);
addElementClass
(
this
,
'
hidden
'
);
});
}
connect
(
self
.
id
+
'
_userfile
'
,
'
onchange
'
,
self
.
upload_submit
);
}
...
...
@@ -468,4 +460,4 @@ function fileattached(filename) {
function fileattached_id(id) {
return some(attached.tbody.childNodes, function (r) { return getNodeAttribute(r,'id') == id; });
}
*/
\ No newline at end of file
*/
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