fmt_empty --> is_col_empty

This commit is contained in:
Marek Majkowski 2011-02-17 15:30:09 +00:00
parent bbf5f91950
commit 81c725d596
2 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,7 @@ function fmt_rate0(obj, name, fmt, show_total) {
return res;
}
function fmt_empty(obj, name) {
function is_col_empty(obj, name) {
if (obj == undefined
|| obj[name] == undefined
|| obj[name + '_details'] == undefined

View File

@ -1,7 +1,7 @@
<h3><%= label %></h3>
<%
var col_return_unroutable = !fmt_empty(totals, 'return_unroutable');
var col_return_not_delivered = !fmt_empty(totals, 'return_not_delivered');
var col_return_unroutable = !is_col_empty(totals, 'return_unroutable');
var col_return_not_delivered = !is_col_empty(totals, 'return_not_delivered');
%>
<% if (object && object.length > 0) { %>
<table class="list list-with-total">