processmaker-builder
Version:
The gulp task runner for ProcessMaker building
16 lines (12 loc) • 445 B
JavaScript
function redirectPage(page){
window.location = page;
}
function randomNum(inf, sup){
numPos = sup - inf;
aleat = Math.random() * numPos;
aleat = Math.round(aleat);
return parseInt(inf) + aleat;
}
function renderStatus (data, metadata, record, rowIndex, columnIndex, store) {
return "<span style=\"color: " + ((record.data.IMPORT == 1)? "#005E20" : "#FF0000") + ";\">" + record.data.STATUS.toUpperCase() + "</span>";
}