Thanks for your plugin, works fine, but one little thing … :-)
/**
* Mantis Graph plugin
*/
Wouldn't it be nice to get rid of jquery?
document.addEventListener('DOMContentLoaded', function(event) {[
'#buglist .fa-status-box' /*listing*/,
'#view-issue-page .fa-status-box' /*view header/relations*/
].forEach((selector) => {
document.querySelectorAll(selector).forEach((status) => {
status.closest('td').classList.add([...status.classList].find((n) => /^status-/.test(n))?.replace('-fg','-bg'));
status.remove()
})
})
});
I know jquery is there anyway and so why not use it. But it's about jquery itself and vanilla looks nicer … and the bug relations would also colored -:)
Thanks for your plugin, works fine, but one little thing … :-)
Wouldn't it be nice to get rid of jquery?
I know jquery is there anyway and so why not use it. But it's about jquery itself and vanilla looks nicer … and the bug relations would also colored -:)