[FIX]Fixed the issue of innerHTML not shown in progress tag.

bzr revid: msh@tinyerp.com-20120428083259-o3h465c3t29h89ks
This commit is contained in:
msh-openerp
2012-04-28 14:02:59 +05:30
parent 48f43ae5a4
commit ea3010b049
+3 -3
View File
@@ -333,9 +333,9 @@ openerp.web.format_cell = function (row_data, column, options) {
href: download_url,
size: row_data[column.id].value
});
case 'progressbar':
return _.template(
'<progress value="<%-value%>" max="100"><%-value%>%</progress>', {
case 'progressbar':
return _.template('<div style="position: relative;width:100%; border: 1px solid gray;background:#D3D3D3; border-radius: 15px; font-size: 11px;">&nbsp;<div style="position: absolute; top:0; left: 0; border-radius: 15px; background: #FF7F50; width: <%-value%>%; height: 100%;"></div><div style="position: absolute; top:0; left: 0; width: 100%; height: 100%; text-align: center"><%-value%>%</div></div>',
{
value: _.str.sprintf("%.0f", row_data[column.id].value || 0)
});
}