fmt_empty --> is_col_empty
This commit is contained in:
parent
bbf5f91950
commit
81c725d596
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue