Commit 5818fcd3 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Added nice image if used with this custom render function, specifically for boolean columns

- Robert Anderson <randerson@lbsd.net>
parent 065db7ff
......@@ -453,4 +453,15 @@ 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';
return ''
+ '<div style="text-align:center;height:13px;overflow:visible">'
+ '<img style="vertical-align:-3px" src="' + displayImg + '" />'
+ '</div>';
}
// 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