MOON
Server: Apache
System: Linux u18017238.onlinehome-server.com 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64
User: emblazeone (1003)
PHP: 7.3.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/emblazeone/public_html/newmantis/js/custom.js
$(function () {
    // var elements = document.querySelectorAll('i[class*="status-"]');
    $('i[class*="status-"]').each(function (i, el) {
        var self = $(this);
        // var el = $(this)[0];
        // console.dir(el.classList);
        // for(var item in el.classList){
        //     console.dir(item);
        // }

        for (var i = 0; i < el.classList.length; i++) { // перечислить классы
            var className = el.classList[i];
            var pos = className.indexOf('status');
            if (pos == 0) {
                var tr = self.parent().parent().parent();
                tr.addClass(className);
            }
        }
    })
});