Show More
@@ -336,16 +336,11 define([ | |||||
336 | checkbox.css('visibility', 'hidden'); |
|
336 | checkbox.css('visibility', 'hidden'); | |
337 | } else if (selectable === true) { |
|
337 | } else if (selectable === true) { | |
338 | var that = this; |
|
338 | var that = this; | |
339 | link.click(function(e) { |
|
|||
340 | e.stopPropagation(); |
|
|||
341 | }); |
|
|||
342 | checkbox.click(function(e) { |
|
|||
343 | e.stopPropagation(); |
|
|||
344 | that._selection_changed(); |
|
|||
345 | }); |
|
|||
346 | row.click(function(e) { |
|
339 | row.click(function(e) { | |
347 | e.stopPropagation(); |
|
340 | // toggle checkbox only if the click doesn't come from the checkbox or the link | |
348 | checkbox.prop('checked', !checkbox.prop('checked')); |
|
341 | if (!$(e.target).is('span[class=item_name]') && !$(e.target).is('input[type=checkbox]')) { | |
|
342 | checkbox.prop('checked', !checkbox.prop('checked')); | |||
|
343 | } | |||
349 | that._selection_changed(); |
|
344 | that._selection_changed(); | |
350 | }); |
|
345 | }); | |
351 | } |
|
346 | } |
General Comments 0
You need to be logged in to leave comments.
Login now