// Funktion zum entfernen des Startschrittes var removeProcessLink = { windowLocation: undefined, onLoad: function (prozess, startnumber) { removeProcessLink.removeStartStep(prozess, startnumber); }, removeStartStep: function (processname, startstep) { if (!document.getElementById('jr-new-incidents-content')) { return; } var a = document.getElementsByClassName("jr-new-incidents-content-item-link"), i, aLength = a.length; for (i = 0; i < aLength; i++) { if (a[i].getAttribute('onclick').indexOf(processname) !== -1 && a[i].getAttribute('onclick').indexOf(startstep) !== -1 && a[i].classList.contains('jr-new-incidents-content-item-link') !== false) { a[i].parentNode.remove(); i--; aLength = aLength - 1; } } } }; function addHandlebarHelper() { Handlebars.registerHelper('less', function(a, b) { return a < b; }); Handlebars.registerHelper('more', function(a, b) { return a >= b; }); Handlebars.registerHelper('equal', function(a, b) { return a == b; }); Handlebars.registerHelper("counter", function (index){ return index + 1; }); Handlebars.registerHelper("percenter", function (count){ return Math.floor(100 / count); }); Handlebars.registerHelper('rawHTML', function(variable) { return new Handlebars.SafeString(variable); }); } function changeStartProcessStartsSteps() { // Startschritt entfernen (Prozessname, Startschritt) // removeProcessLink.onLoad('bkCanbanBoard',10); } function __init__(){ addHandlebarHelper(); changeStartProcessStartsSteps(); } console.log('JS Start'); jQuery(document).on( $JRApp.Events.PageDidChange, function() { console.log('Cache Start'); __init__(); });