Commit 22c9189e authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Merge branch 'v0.0.x' of git.devlabs.linuxassist.net:awit-extjs-framework into v0.0.x

parents 26163f31 57fe745f
......@@ -455,8 +455,8 @@ uxAjaxRequest = function(theWindow,config) {
// Display a check or uncheck image based on column value
function renderNiceBooleanColumn(value) {
var displayImg = value ? 'resources/custom/images/silk/icons/cancel.png' :
'resources/custom/images/silk/icons/accept.png';
var displayImg = value ? 'awitef/resources/custom/images/silk/icons/cancel.png' :
'awitef/resources/custom/images/silk/icons/accept.png';
return ''
+ '<div style="text-align:center;height:13px;overflow:visible">'
+ '<img style="vertical-align:-3px" src="' + displayImg + '" />'
......
......@@ -40,5 +40,23 @@ function renderUsageFloat(val) {
return val.toFixed(2);
}
function formatUnixTimestamp(v,f) {
if (v) {
// Check if we have a format
if (!f) {
return v;
}
// Working with seconds
var dt = new Date();
dt.setTime(v * 1000);
return dt.format(f);
} else {
return;
}
}
// vim: ts=4
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment