// 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'; } } }); }
Mar 03 | Add email address to contacts grid. | Enhancement |
Mar 03 | Updating purchase order filename config. | Enhancement |
Mar 03 | Bugfix for duplicate question answers in leads. | Bugfix |
Mar 03 | Add ‘colour’ field to the Appliance printout. | Enhancement |
Mar 10 | Bugfix for job forms not handling apostrophes in the question names. | Bugfix |
Mar 10 | Performance improvement for showing the Price Matrix prices grid when the axes have lots of price breaks in them. | Usability |
Mar 10 | Performance improvement for Job Cost Report. | Enhancement |
Mar 10 | Bugfix for Lead Value calculation when sections are being used. | Bugfix |
Mar 10 | Remove Material Type, Type and Brand fields from report class ‘Jobs’. | Usability |
Mar 10 | Ensuring that quote items are updated with the parent section details. This will help when multiple people work on the same quote at the same time. | Enhancement |
Mar 17 | Bugfix for handling negative lead times in job and lead checklists. | Bugfix |
Mar 17 | Allow variables like {$ContactPerson_2.FirstName}{$ContactPerson_2.LastName} in lead templates. | Usability |
Mar 25 | Allowing the {$EmailSignature} placeholder to be used when sending email triggers. | Enhancement |
Mar 25 | Bugfix for lead values being set to 0 when a staff of low access level updates a lead in certain circumstances. | Bugfix |
Mar 25 | Showing date that the status was completed, on the Job Bar Chart, for segments that are green. | Enhancement |
Mar 25 | Bugfix for rounding error in the invoice amount due calculation. | Bugfix |
Mar 25 | Bugfix for subtotal printout calculation for lines with negative values, where it was only calculating subtotals for items below subheadings, not for the lines above the subheading. | Bugfix |
Mar 25 | Ability to upload xlsx format for price matrices | Enhancement |
Mar 25 | Adding config for lead/corro subjects. | Enhancement |
Mar 25 | Updating corro windows to remove the Contact Person dropdown field. | Enhancement |
Mar 31 | Bugfix where the variables in a quote introduction are not being replaced on first load | Bugfix |
Mar 31 | Change pdf file names from show_pdf.pdf when printing purchase orders, invoices, job specs and quotes. | Enhancement |
Mar 31 | Making bar chart grids (Job and Lead) automatically refresh after a job/lead is saved. Also remember the size of the form, if the size is changed. | Enhancement |
Mar 31 | Move filters to modal on Target Calendar. | Enhancement |
