// 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';
}
}
});
}
| 05 Oct |
Changed size of alert entry form, which allows it to stretch in a manner that makes it easier to enter data. | Enhancement |
| 05 Oct |
Removed change log from Job Appliance form, as this is not really relevant to Job Appliances. | Bugfix |
| 05 Oct |
Allowing quote raw material report to sort properly. | Bugfix |
| 05 Oct |
Performance improvement for exporting Jobs CSV from the Jobs homepage. | Enhancement |
| 05 Oct |
Slight changes to WooCommerce import: 1. Handling trailing spaces in the styles columns in the CSV. 2. Handling multiple measurements in the dimensions column. 3.Resolving error when debugging. | Enhancement |
| 12 Oct |
Increase in the memory limit for very large availability chart imports. | Enhancement |
| 19 Oct |
Bugfix for handling the new Cabinet Vision file format psnc-cv.accdb | Bugfix |
| 19 Oct |
Performance improvement for Job Cost Reports | Enhancement |
| 19 Oct |
Bugfix for target calendar, in instances where ihe calendar wasn’t picking up jobs that had multiple types & when one relevant filter was set. | Bugfix |
| 19 Oct |
Added an ability to show quote items that are within a section, specifically when viewing the quote item report and filtering based on a quote number. | Enhancement |
