fix click event for actual target

TNL-138
This commit is contained in:
zubair-arbi
2014-10-31 16:19:47 +05:00
committed by cahrens
parent 074c09687c
commit dd71ca0f8a
3 changed files with 20 additions and 3 deletions

View File

@@ -281,7 +281,7 @@ define(["jquery", "underscore", "gettext", "js/views/baseview", "js/views/utils/
handleAddEvent: function(event) {
var self = this,
target = $(event.target),
target = $(event.currentTarget),
category = target.data('category');
event.preventDefault();
XBlockViewUtils.addXBlock(target).done(function(locator) {