Commit 26263d6f authored by Son Nguyen's avatar Son Nguyen
Browse files

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



Change-Id: Ic144660524e7ef0108989f8064b034740f3848a3
Signed-off-by: default avatarSon Nguyen <son.nguyen@catalyst.net.nz>
parent 3fd420f9
......@@ -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) {
......
Supports Markdown
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