// 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'; } } }); }
Dec 03 | Changing “Room Type” label to “Area” in all reports. | Usability |
Dec 03 | Adding a new filter to hide received items in the purchase order detail report. | Usability |
Dec 03 | Performance improvement for the invoice form when showing invoices related to purchase orders. | Enhancement |
Dec 09 | Bugfix for sorting by Job Number in the Job Specs tab in a Lead. | Bugfix |
Dec 09 | Performance improvement for saving jobs . | Usability |
Dec 09 | Format {$Job.DeliveryDate} variable. | Enhancement |
Dec 09 | {QuoteItem.QuoteItemSubTotal} to be formatted to display as $0,000.00 | Enhancement |
Dec 09 | New tickbox to hide style types in the quote printout, when editing a style type. | Enhancement |
Dec 16 | Add account codes to Stock Types. | Enhancement |
Dec 16 | Bugfix for negative total rounding on frontend. | Bugfix |
Dec 16 | Performance improvement when deleting old tasks. | Usability |
Dec 16 | When PURCHASE_ORDER_NOTIFY_EMAIL_ADDRESS config is set to NULL, then no contact log is saved on the Purchase Order. | Enhancement |
Dec 16 | Bugfix for Cabinet Vision import when importing large report.mdb files. | Bugfix |
