Skip to content

Commit dc6dd62

Browse files
committed
Changing JS for click to toggle
Moving the class 'click to toggle' to the parent of the UL, so JS change reflects that
1 parent 5804ab9 commit dc6dd62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

javascript/dataobject_manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ $.fn.DataObjectManager.init = function(obj) {
172172
// Click function for the LI
173173
$container.find('ul:not(.ui-sortable) li.data').unbind('click').click(function(e) {
174174
var $this = $(this);
175-
if ($this.parent().hasClass('toggleSelect')) {
175+
if ($this.parent().parent().hasClass('toggleSelect')) {
176176
var $input = $this.find('input'),
177177
checker = !$input.attr('checked');
178178
//don't ask me wtf is going on here!

0 commit comments

Comments
 (0)