[view/explorer][xs]: show unknown when doc count unknown (rather than nothing).

This commit is contained in:
Rufus Pollock 2012-01-26 20:31:39 +00:00
parent afc948295e
commit fbacd700c7

View File

@ -102,7 +102,7 @@ my.DataExplorer = Backbone.View.extend({
// retrieve basic data like headers etc
// note this.model and dataset returned are the same
this.model.fetch().then(function(dataset) {
self.el.find('.doc-count').text(self.model.docCount);
self.el.find('.doc-count').text(self.model.docCount || 'Unknown');
// initialize of dataTable calls render
self.model.getDocuments(self.config.displayCount);
});