var $item = $(item);
if (WCF.inArray($item.data('objectID'), this._markedObjectIDs)) {
$item.attr('checked', 'checked');
+
+ // add marked class for element container
+ $item.parents('.jsClipboardObject').addClass('jsMarked');
}
}, this));
var $container = $(container);
$container.find('input.jsClipboardItem, input.jsClipboardMarkAll').removeAttr('checked');
+ $container.find('.jsClipboardObject').removeClass('jsMarked');
});
},
if ($isMarked) {
this._markedObjectIDs.push($objectID);
+ $item.parents('.jsClipboardObject').addClass('jsMarked');
}
else {
this._markedObjectIDs = $.removeArrayValue(this._markedObjectIDs, $objectID);
+ $item.parents('.jsClipboardObject').removeClass('jsMarked');
}
// item is part of a container
}
}
}, this));
+
+ if ($isMarked) {
+ $container.find('.jsClipboardObject').addClass('jsMarked');
+ }
+ else {
+ $container.find('.jsClipboardObject').removeClass('jsMarked');
+ }
}
// save new status