Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. window.addEventListener('load', () => {
  2. if (window.location.pathname !== '/issues/' && window.location.search !== '?filter=10007') {
  3. return
  4. }
  5.  
  6. let colours = document.querySelectorAll('.customfield_10017')
  7. const colourMap = [
  8. yellow: '',
  9. blue: ''
  10. ]
  11. colours.forEach((colour) => {
  12. let colourCode = typeof colourMap[colour.innerText] === 'string'
  13. ? colourMap[colour.innerText]
  14. : colour.innerText;
  15. colour.innerHTML = '<span style="width: 10px; height: 10px; background: ' + colourCode + '; display: inline-block;"></span>';
  16. })
  17. document.querySelector('.headerrow-customfield_10017 span').innerText = 'Status'
  18. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement