// find the parent tr element of any td with the word Bugfix in it
document.addEventListener("DOMContentLoaded", function(){
let tableElement = setUpShowMoreButton();
// create top bar, if there are bug fixes
if (tableElement != '') {
let buttonDiv = document.createElement('div');
buttonDiv.setAttribute('class', 'topNewsBar');
buttonDiv.innerHTML = '';
tableElement.prepend(buttonDiv);
}
});
function setUpShowMoreButton()
{
let hideBugfixFlag = false;
let tableElement = '';
document.querySelectorAll('td').forEach(function(item){
if (item.innerHTML.indexOf('Bug') != -1) {
let thisParentElement = item.parentElement;
// thisParentElement.style.display = 'none';
thisParentElement.classList.add('bugfixStyle');
thisParentElement.style = 'display: none'
hideBugfixFlag = true;
tableElement = thisParentElement.parentElement.parentElement.parentElement;
}
});
reStyleTableRows();
return tableElement;
}
function showBugfixes()
{
let classElements = document.getElementsByClassName('bugfixStyle');
Array.prototype.forEach.call(classElements,function(classElement){
classElement.style = 'display:table-row';
});
let hideButton = document.getElementById('showMoreButton');
hideButton.textContent = 'Show Less';
hideButton.setAttribute('onClick','hideBugfixes()');
reStyleTableRows();
}
function hideBugfixes()
{
let classElements = document.getElementsByClassName('bugfixStyle');
Array.prototype.forEach.call(classElements,function(classElement){
classElement.style = 'display:none';
});
let hideButton = document.getElementById('showMoreButton');
hideButton.textContent = 'Show More';
hideButton.setAttribute('onClick','showBugfixes()');
reStyleTableRows();
}
// Re-create alternative row colours
function reStyleTableRows()
{
let rowCount = 0;
document.querySelectorAll('tr').forEach(function(item){
if (item.style.display != 'none') {
if (rowCount++ % 2) {
item.style = 'background-color:#f3f4f5';
} else {
item.style = 'background-color:transparent';
}
}
});
}
01 May |
Bugfix for automatic work order numbering, when work orders exist for that same parent job, that have been renamed to something other than a number |
Bugfix |
| 03 May |
Bugfix for timesheet showing deleted efforts when printing |
Bugfix |
| 07 May |
Adding button to “Recalculate Durations” for Tasks |
Useability |
| 15 May |
Adding “Delivery Addresses” to Purchase Orders, which allows each purchase order to select which delivery address to send to |
Useabilty |
| 16 May |
Performance improvement for the financial report |
Enhancement |
| 18 May |
Bugfix for style markup percentages on product items |
Bugfix |
| 23 May |
Add Job Type Code field if it didn’t already exist |
Bugfix |
| 25 May |
Adding “Created” and “Modified” columns in Purchase Orders | Usability |
| 30 May | Adding placeholder code to allow Job Type and Lead Type to be shown in the target calendar. The replacement variable is “ParentTypeName”. | Usability |
