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
bae18a55
Commit
bae18a55
authored
Feb 15, 2012
by
Francois Marier
Committed by
Gerrit Code Review
Feb 15, 2012
Browse files
Merge "Fix file block config edit, select, upload buttons in Chrome (bug #819102)"
parents
29fbcca3
56ace97c
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/js/filebrowser.js
View file @
bae18a55
...
@@ -60,7 +60,10 @@ function FileBrowser(idprefix, folderid, config, globalconfig) {
...
@@ -60,7 +60,10 @@ function FileBrowser(idprefix, folderid, config, globalconfig) {
this
.
upload_init
=
function
()
{
this
.
upload_init
=
function
()
{
if
(
$
(
self
.
id
+
'
_notice
'
))
{
if
(
$
(
self
.
id
+
'
_notice
'
))
{
setNodeAttribute
(
self
.
id
+
'
_userfile
'
,
'
disabled
'
,
true
);
// If the file input is disabled immediately without this delay, later javascript changes
// to the filebrowser are not rendered by Chrome when the filebrowser is inside a block
// configuration form.
callLater
(
0.0001
,
function
()
{
setNodeAttribute
(
self
.
id
+
'
_userfile
'
,
'
disabled
'
,
true
);
});
}
}
if
(
!
$
(
self
.
id
+
'
_upload
'
))
{
if
(
!
$
(
self
.
id
+
'
_upload
'
))
{
insertSiblingNodesAfter
(
self
.
id
+
'
_uploadnumber
'
,
INPUT
({
insertSiblingNodesAfter
(
self
.
id
+
'
_uploadnumber
'
,
INPUT
({
...
...
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