fix selection

This commit is contained in:
Ludovic Stephan 2016-12-10 23:13:43 -02:00
parent 85af7fe485
commit 0b61a48c65

View file

@ -142,9 +142,10 @@ $(document).ready(function() {
selected: function(e, ui) {
$(ui.selected).each(function() {
if ($(this).hasClass('opegroup')) {
var opegroup = $(this).data('opegroup');
var type = $(this).data('type');
var id = $(this).data('id');
$(this).siblings('.ope').filter(function() {
return $(this).data('opegroup') == opegroup
return $(this).data(type) == id
}).addClass('ui-selected');
}
});