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
7203648b
Commit
7203648b
authored
Feb 24, 2014
by
Aaron Wells
Committed by
Gerrit Code Review
Feb 24, 2014
Browse files
Merge "Fix adding extra block when clicking on blocktype (Bug #1283869)"
parents
7a32362d
91d6c8ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/js/views.js
View file @
7203648b
...
...
@@ -407,7 +407,7 @@
$
(
'
.blocktype-list div.blocktype
'
).
each
(
function
()
{
$
(
this
).
find
(
'
.blocktypelink
'
).
on
(
'
click keydown
'
,
function
(
e
)
{
var
keyCode
=
$
.
ui
.
keyCode
;
if
(
e
.
type
==
'
click
'
||
e
.
keyCode
==
keyCode
.
SPACE
||
e
.
keyCode
==
keyCode
.
ENTER
)
{
if
(
(
e
.
type
==
'
click
'
&&
e
.
buttons
>
0
)
||
e
.
keyCode
==
keyCode
.
SPACE
||
e
.
keyCode
==
keyCode
.
ENTER
)
{
startAddBlock
(
$
(
this
));
}
});
...
...
htdocs/theme/views-js.css
View file @
7203648b
...
...
@@ -8,9 +8,8 @@
* This file is licensed under the same terms as Mahara itself
*/
.blocktype
,
.blocktype-clone
{
cursor
:
move
;
}
.blocktype-clone
,
.blocktype
*,
form
.blockinstance-header
{
cursor
:
move
;
}
...
...
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