Commit 2d3d00b0 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Remove old event handlers for blocks in accordion (Bug #1305481)"

parents df26ab2f 26263d6f
......@@ -405,6 +405,7 @@
function makeNewBlocksDraggable() {
$('.blocktype-list div.blocktype').each(function() {
$(this).find('.blocktypelink').off('click keydown'); // remove old event handlers
$(this).find('.blocktypelink').on('click keydown', function(e) {
var keyCode = $.ui.keyCode;
if ((e.type == 'click' && e.buttons > 0) || e.keyCode == keyCode.SPACE || e.keyCode == keyCode.ENTER) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment