// 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'; } } }); }
Oct 07 | Overall improvements to Alerts | Enhancement |
Oct 14 | Bugfix for incorrect Availability Chart Item details overriding | Bugfix |
Oct 14 | Allow for variables in Quote email subject and the ability to customise via config. | Enhancement |
Oct 14 | Performance improvement for showing the lead operation form. | Enhancement |
Oct 14 | Bugfix for quote totals not updating properly. | Bugfix |
Oct 14 | Bugfix to Invoices not showing total when using lead value inside a new invoice. | Bugfix |
Oct 14 | Removed Legacy Import option to Availability Chart Items. Clients are required to use the new import functionality using the default spreadsheet format. | Usability |
Oct 14 | Bugfix with migration filename issue. | Bugfix |
Oct 14 | Performance improvement- when purchase orders are used that are linked to a lot of jobs, the PO list now displays faster. | Enhancement |
Oct 14 | Bugfix for purchase order “Show Finished” checkbox behaviour when new purchase orders are added that should be considered “Finished”. | Bugfix |
Oct 14 | Bugfix for warehouse item form not finding the related availability chart item if the prices of warehouse item and the Availability Chart are different. | Bugfix |
Oct 21 | Bugfix for showing multiple assigned staff in the grid for Alert Types and Purchase Orders | Bugfix |
Oct 21 | Bugfix for not limiting brands in the stock supplier record. | Bugfix |
Oct 21 | Bugfix for allowing staff to add staff types to other staff members with the same access level. | Bugfix |
Oct 21 | Bugfix for adding items to an existing purchase order that was for a specific job where the intention is to add the item for stock and not a job. | Bugfix |
Oct 28 | Performance improvement for the Quote Report. | Enhancement |
Oct 28 | Performance improvement for the Quote Item Report. | Enhancement |
Oct 28 | Bugfix to stop Site Address clearing when a Builder is changed. | Bugfix |
Oct 28 | Importing products from a CSV file. | Enhancement |
