fix truncated message

This commit is contained in:
Adam Young 2011-03-02 23:21:07 -05:00 committed by Endi S. Dewata
parent 5a9a9723de
commit 620903ff27

View File

@ -501,12 +501,17 @@ IPA.records_facet = function (spec){
generate_tr(thead, tbody, result[i]); generate_tr(thead, tbody, result[i]);
} }
tfoot.find('td').remove();
if (data.result.truncated) { if (data.result.truncated) {
var message = IPA.messages.search.truncated; var message = IPA.messages.search.truncated;
message = message.replace('${counter}', data.result.count); message = message.replace('${counter}', data.result.count);
tfoot.text(message); tfoot.append($('<td />',{
colspan:2,
text:message}));
} else { } else {
tfoot.text(data.result.summary); tfoot.append($('<td/>',{
colspan:2,
text:data.result.summary}));
} }
} }