// 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';
}
}
});
}
08 Jun |
Bugfix for the alert type form, where a blank line would be added in the staff combo box. |
Bugfix |
| 08 Jun |
Adding Project Supervisor or any staff list applied to Job Details area available to send email trigger |
Enhancement |
| 08 Jun |
Job Number Prefix set in Config |
Useability |
| 15 Jun |
Allow quantities of raw material items to be adjusted, after a purchase order was created, and then deleted. | Bugfix |
| 15 Jun |
Microvellum Product Import | Enhancement |
| 15 Jun |
Bugfix for apostrophes not showing in tooltips correctly | Bugfix |
| 15 Jun |
Sort by value in the Job Time report | Bugfix |
| 15 Jun |
When profit percentages are turned off, add the profit percentage when adding a product manually and when adding it from a preset. | Bugfix |
| 15 Jun |
Allow special characters in Corro Template names | Bugfix |
| 15 Jun |
Bugfix to fix timesheet graph occasionally not showing properly | Bugfix |
| 22 Jun |
Bugfix for the target calendar, where locking all target dates would reset the time of targets. | Bugfix |
| 22 Jun |
Working week can now be displayed from Wed-Tues | Enhancement |
| 22 Jun |
Summary available for phone sign-in user to view hours logged in pay week. | Enhancement |
| 22 Jun |
Bugfix for inactive invoice types being shown in the “Invoice Type” dropdown when editing an invoice | Bugfix |
| 22 Jun |
Labour numbers are now being calculated correctly. When quotes are updated/added to a lead which has already been turned into a job. | Bugfix |
| 29 Jun |
Updates to Alert Notifications | Enhancement |
