// 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';
}
}
});
}
| Feb 01 |
Allowing the user to unlink an invoice from Xero |
Useabilty |
| Feb 02 |
Bugfix for some columns not remembering their sizes, when a job is opened from the agenda screen |
Bugfix |
| Feb 03 |
Bugfix for Alerts, where the filters would stop working in the alert grid, if a job was opened, and the alerts viewed within that job |
Bugfix |
| Feb 07 |
Bugfix when changing a supplier, which can set the product codes incorrectly in the rest of the purchase order |
Bugfix |
| Feb 08 |
Allow Jobman to handle pairs in Cabinet Vision Raw Material files |
Enhancement |
| Feb 09 |
Bugfix for exporting CSV from the jobs screen, where it wasn’t exporting the detail fields |
Bugfix |
| Feb 10 |
Adding “DeliveryAreaName” to replacement variables for target calendar template |
Enhancement |
| Feb 11 |
Bugfix for effort report, where an apostrophe in an operation name could cause an error when that operation was selected, and the report saved |
Bugfix |
| Feb 14 |
Adding support for jmsync uploader |
Enhancement |
| Feb 15 |
Allow commas in the config variable OPERATIONTYPEID_JOBDELIVERY, allowing different operations to be all classed as “Job Delivery”. It is intended that jobs shouldn’t have more than one task that is classed as “Job Delivery” |
Useability |
| Feb 16 |
Bugfix for upgrade to ajax semaphore code |
Bugfix |
| Feb 17 |
Adding support for uploading the psnc-cv.mdb file, which contains the Job Products from Cabinet Vision |
Enhancement |
| Feb 18 |
Bugfix for exporting CSV from Jobs grid, when there are large numbers of detail questions |
Bugfix |
| Feb 21 |
Bugfix for timesheet, where it was possible to save an effort with no task assigned to it |
Bugfix |
| Feb 22 |
Bugfix for Woocommerce import |
Bugfix |
| Feb 23 |
Bugfix for creating times for another staff member when in the timesheet |
Bugfix |
