Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
1d649f21
Commit
1d649f21
authored
Apr 15, 2015
by
Aaron Wells
Committed by
Gerrit Code Review
Apr 15, 2015
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Hide accessibility link on drag-and-drop."
parents
aad93394
1bb15dcd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
htdocs/artefact/file/js/filebrowser.js
htdocs/artefact/file/js/filebrowser.js
+5
-5
No files found.
htdocs/artefact/file/js/filebrowser.js
View file @
1d649f21
...
...
@@ -479,12 +479,12 @@ function FileBrowser(idprefix, folderid, config, globalconfig) {
if
(
elemid
!=
moveid
)
{
var
displaytitle
=
title
.
find
(
'
.display-title
'
).
html
();
var
link
=
$j
(
'
<a>
'
).
attr
(
'
href
'
,
'
#
'
).
html
(
get_string
(
'
moveto
'
,
displaytitle
));
link
.
on
(
'
mousedown
keydown
'
,
function
(
e
)
{
if
(
e
.
type
==
'
mousedown
'
&&
e
.
buttons
==
0
)
{
link
.
on
(
'
click
keydown
'
,
function
(
e
)
{
if
(
e
.
type
==
'
click
'
&&
e
.
buttons
==
0
)
{
// Stops the link being activated when it shouldn't (eg. when setting focus to the list)
return
false
;
}
else
if
(
e
.
type
==
'
mousedown
'
||
e
.
keyCode
==
32
||
e
.
keyCode
==
13
)
{
else
if
(
e
.
type
==
'
click
'
||
e
.
keyCode
==
32
||
e
.
keyCode
==
13
)
{
self
.
setfocus
=
'
changefolder:
'
+
elemid
;
self
.
move_to_folder
(
moveid
,
elemid
);
self
.
move_list
=
null
;
...
...
@@ -522,8 +522,8 @@ function FileBrowser(idprefix, folderid, config, globalconfig) {
this
.
make_icon_keyboard_accessible
=
function
(
icon
)
{
var
self
=
this
;
var
id
=
icon
.
id
.
replace
(
/.+:/
,
''
);
$j
(
icon
).
on
(
'
mousedown
keydown
'
,
function
(
e
)
{
if
(
e
.
type
==
'
mousedown
'
||
e
.
keyCode
==
32
||
e
.
keyCode
==
13
)
{
$j
(
icon
).
on
(
'
click
keydown
'
,
function
(
e
)
{
if
(
e
.
type
==
'
click
'
||
e
.
keyCode
==
32
||
e
.
keyCode
==
13
)
{
var
folderlist
=
self
.
create_move_list
(
icon
,
id
);
if
(
folderlist
!=
''
)
{
$j
(
icon
).
closest
(
'
tr
'
).
find
(
'
.filename
'
).
append
(
folderlist
);
...
...
Write
Preview
Markdown
is supported
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