// 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'; } } }); }
Jan 04 | Allow apostrophe’s in Quote Status when viewing a report. | Usability |
Jan 04 | Making the Agenda Screen not auto refresh for a period of time when in use. | Enhancement |
Jan 04 | Bugfix for being able to search details in Leads. | Bugfix |
Jan 04 | Remove default message in corro and create a config should clients want it to be visible. | Enhancement |
Jan 04 | Fix paragraphs in detail questions. | Enhancement |
Jan 14 | Prevent inactive templates from showing up when creating a new purchase order. | Usability |
Jan 14 | Restrict quote unit price to two decimal places on the printout. | Enhancement |
Jan 14 | Allowing editing of the job and lead appliance templates. | Enhancement |
Jan 14 | Google Drive Integration with Jobman. | Feature |
Jan 20 | Bugfix for tasks that are scheduled in for 12:00am not appearing in the day view of the scheduler. | Bugfix |
Jan 20 | Bugfix for invoices that had unit prices with more than two decimal places, not going across to Xero with the full four decimal places precision. | Bugfix |
Jan 20 | Bugfix for purchase orders not handling cancelled lines properly (not reporting total of items correctly). | Bugfix |
Jan 20 | Removing job number from the purchase order number. This is dependant on the config variable PURCHASE_ORDER_NUMBER_APPEND_JOB_NUMBER. | Enhancement |
Jan 20 | Bugfix for Appliance Printout duplicating lines in the different rooms. | Bugfix |
Jan 20 | Bugfix for sometimes the Contact Log for Purchase Orders would not be filled out after emailing a purchase order to a supplier if the PURCHASE_ORDER_NOTIFY_EMAIL_ADDRESS field was blank. | Bugfix |
