mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Don't need to detach and re-attach rows any more!!
This commit is contained in:
parent
2ccb014d9e
commit
ea03205c50
@ -181,16 +181,8 @@
|
|||||||
|
|
||||||
that.$body.find('tr[data-parent-index=' + item.id + ']').addClass('hidden stock-sub-group');
|
that.$body.find('tr[data-parent-index=' + item.id + ']').addClass('hidden stock-sub-group');
|
||||||
|
|
||||||
|
// Insert the group header row before the first item
|
||||||
that.$body.find('tr[data-parent-index=' + item.id + ']:first').before($(html.join('')));
|
that.$body.find('tr[data-parent-index=' + item.id + ']:first').before($(html.join('')));
|
||||||
|
|
||||||
var group_header = that.$body.find('tr[data-group-index=' + item.id + ']');
|
|
||||||
|
|
||||||
// Ensure all the sub-items are in the right place...
|
|
||||||
|
|
||||||
that.$body.find('tr[data-parent-index=' + item.id + ']').each(function() {
|
|
||||||
$(this).detach();
|
|
||||||
group_header.after(this);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user