bubble event to parent
This commit is contained in:
parent
2eb37a82ca
commit
eb8da64a04
|
@ -33,7 +33,7 @@ $(function() {
|
||||||
|
|
||||||
$('.list').click(function(e) {
|
$('.list').click(function(e) {
|
||||||
var name = $(this).attr("id").replace("sList", ""); //FIXME: stick name in a data attr or so?
|
var name = $(this).attr("id").replace("sList", ""); //FIXME: stick name in a data attr or so?
|
||||||
var $target = $(e.target);
|
var $target = $(e.target).parent();
|
||||||
if (!$target.hasClass('listItem')) {
|
if (!$target.hasClass('listItem')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user