[model,bugfix][s]: correction for change introduced in last commit to move summary method from Record to Dataset.recordSummary.

This commit is contained in:
Rufus Pollock
2012-07-03 15:35:40 +01:00
parent 40ed25c7b2
commit 202ca2dce0
3 changed files with 6 additions and 5 deletions

View File

@@ -256,12 +256,13 @@ my.Dataset = Backbone.Model.extend({
//
// Get a simple html summary of a Dataset record in form of key/value list
recordSummary: function(record) {
var html = '';
var html = '<div class="recline-record-summary">';
this.fields.each(function(field) {
if (field.id != 'id') {
html += '<div><strong span="key">' + field.get('label') + '</strong>: ' + record.getFieldValue(field) + '</div>';
html += '<div class="' + field.id + '"><strong>' + field.get('label') + '</strong>: ' + record.getFieldValue(field) + '</div>';
}
});
html += '</div>';
return html;
},