// 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';
}
}
});
}
| 1st Feb | Allowing the products phone interface to scan many different barcode protocols, not just QR codes. | Enhancement |
| 8th Feb | Updating quote item report, to show: * Section name when displaying the section parent quote item * Parent quote number for quote items that are inside a section * Ability to show quote item report in a format where it’s grouped by section name to Items. | Enhancement |
| 15th Feb | Allowing QBO integration to handle a plugin to QBO that saves projects into the Customer table. | Enhancement |
| 15th Feb | Bugfix for Xero integration, so that when the API returns a 429 Rate Limit Exceeded, our software would wait for long enough to allow the rate limit restriction to ease. | Bugfix |
| 22nd Feb | Bugfix for job list occasionally showing the wrong “Next Target”. | Bugfix |
| 22nd Feb | Updating Cabinet Vision integration to handle Sheet Sizes. | Enhancement |
| 22nd Feb | Updates to JM2 integration, to allow linking to QA sites, not just live sites. | Enhancement |
