// 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 2 | Speed improvements for job agenda screens | Optimisation |
| Jan 3 | Making email triggers be sent at midnight, instead of being related to the target time | Bugfix |
| Jan 3 | Speed improvements for showing the Job list | Optimisation |
| Jan 4 | Bugfix for emailing purchase orders that were removing the order date | Bugfix |
| Jan 7 | Making the Job Corro screen stretch when dimensions are changed. | Bugfix |
| Jan 7 | Touchscreen, cut off button text fixed for Safari. Added multi-image select for alerts and added scrolling on image edit popup. | Bugfix |
| Jan 8 | Changing the “Efforts” tab in the timesheet to “Attendance”, which is linked to the staff member who is logged in. | Feature |
| Jan 9 | Added option to hide Quote Style Type confirmation popup, dependent on optional entry in config table. | Feature |
| Jan 9 | Handling efforts that span over two days | Bugfix |
| Jan 16 | Added a link to phone number in Target Maps. Linked Site Address to Google Maps. | Feature |
| Jan 16 | Added the ability to delete associated Work Orders when deleting Jobs. | Feature |
| Jan 21 | Added functionality to add profit percentage to products and contacts separately, for quoting | Feature |
| Jan 22 | Updated Job Cost report to sue the Invoiced value, not the Job value (based on the config variable JOB_COST_REPORT_USE_INVOICED_VALUE_FOR_PROFIT_CALCULATION) | Enhancement |
| Jan 23 | Added filter for “Spec Question Group” on the Spec Question page | Feature |
| Jan 24 | All customers contacts now show up in the quote email form | Feature |
| Jan 24 | Making Staff Time and Attendance report print out the same as how the report looks in the form view | Bugfix |
| Jan 24 | Speed improvement for saving purchase order details | Enhancement |
| Jan 24 | Added Buy Price total and Profit margin for SubTotal to Quote. | Enhancement |
| Jan 29 | Preventing deleted products from being shown in the product dropdown menu | Bugfix |
| Jan 30 | Allowing staff to just ‘log on’ to leads and jobs, and it will automatically stretch the previous entry to where you logged into. | Bugfix |
