ac04675f5e
Added quick filter support to history panel. git-svn-id: http://google-refine.googlecode.com/svn/trunk@1585 7d457c2a-affb-35e4-300a-418c747d4874
21 lines
671 B
JavaScript
21 lines
671 B
JavaScript
function SummaryBar(div) {
|
|
this._div = div;
|
|
this._initializeUI();
|
|
}
|
|
|
|
SummaryBar.prototype._initializeUI = function() {
|
|
|
|
};
|
|
|
|
SummaryBar.prototype.updateResultCount = function() {
|
|
var summaryText;
|
|
var units = theProject.rowModel.mode == "row-based" ? "rows" : "records";
|
|
if (theProject.rowModel.filtered == theProject.rowModel.total) {
|
|
summaryText = (theProject.rowModel.total) + ' ' + units;
|
|
} else {
|
|
summaryText = (theProject.rowModel.filtered) + ' matching ' + units + ' <span id="summary-total">(' + (theProject.rowModel.total) + ' total)</span>';
|
|
}
|
|
|
|
$('<span>').html(summaryText).appendTo(this._div.empty());
|
|
};
|