bubble event to parent

This commit is contained in:
Sanj 2012-02-20 19:54:09 +05:30
parent 2eb37a82ca
commit eb8da64a04

View File

@ -33,7 +33,7 @@ $(function() {
$('.list').click(function(e) {
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')) {
return;
}