Created
December 11, 2020 12:40
-
-
Save IgorGavrilenko/b4d7ed33d548ef4ef59a4ad85ea59ea4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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