![David Huynh](/assets/img/avatar_default.png)
Moved browsing mode toggles from browsing panel to view panel. git-svn-id: http://google-refine.googlecode.com/svn/trunk@1435 7d457c2a-affb-35e4-300a-418c747d4874
22 lines
769 B
JavaScript
22 lines
769 B
JavaScript
function SummaryWidget(div) {
|
|
this._div = div;
|
|
this._initializeUI();
|
|
}
|
|
|
|
SummaryWidget.prototype._initializeUI = function() {
|
|
|
|
};
|
|
|
|
SummaryWidget.prototype.updateResultCount = function() {
|
|
var summaryText;
|
|
var units = theProject.rowModel.mode == "row-based" ? "rows" : "records";
|
|
if (theProject.rowModel.filtered == theProject.rowModel.total) {
|
|
summaryText = '<span class="summaryWidget-rowCount">' + (theProject.rowModel.total) + ' ' + units + '</span>';
|
|
} else {
|
|
summaryText = '<span class="summaryWidget-rowCount">' +
|
|
(theProject.rowModel.filtered) + ' matching ' + units + '</span>' + ' (' + (theProject.rowModel.total) + ' total)';
|
|
}
|
|
|
|
$('<span>').html(summaryText).appendTo(this._div.empty());
|
|
};
|