Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// uOrderInitInit
$(uOrderInitInit);
function uOrderInitInit(){
var $filterOutput = $('.filter-output');
var $uOrder = $('.table-u-order__hint');
var $uOrderEl = '.table-u-order__hint';
var $uOrderParent = 'td';
var $uOrderParentClass = 'table-u-order';
if ($uOrder.length) {
$uOrder.parent($uOrderParent).addClass($uOrderParentClass);
}
$filterOutput.on("DOMNodeInserted", function (event) {
$(event.target).find($uOrderEl).parent($uOrderParent).addClass($uOrderParentClass);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment