From eb8da64a04dd5ef1af883d17b0999906f1f71791 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 20 Feb 2012 19:54:09 +0530 Subject: [PATCH] bubble event to parent --- chaloBEST/static/js/editstops.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaloBEST/static/js/editstops.js b/chaloBEST/static/js/editstops.js index ca885ea..2c2a77a 100644 --- a/chaloBEST/static/js/editstops.js +++ b/chaloBEST/static/js/editstops.js @@ -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; }