Skip to content

Commit 8b57f06

Browse files
author
Olivier Giulieri
committed
Fixed inconsistency in property names.
Must be “attribute” not “attr”.
1 parent 5bda3e4 commit 8b57f06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/one.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ Evol.ViewOne = Backbone.View.extend({
546546
renderPanelList: function (h, p, mode) {
547547
h.push('<div style="width:', p.width, '%" class="evol-pnl pull-left" data-pid="', p.id,'">',
548548
Evol.UI.HTMLPanelBegin(p.id, p.label, this.options.style),
549-
'<table class="table" data-mid="', p.attr,'"><thead><tr>'); // table-striped
549+
'<table class="table" data-mid="', (p.attribute || p.id),'"><thead><tr>'); // table-striped
550550
_.each(p.elements, function (elem) {
551551
h.push('<th>', elem.label, '</th>');
552552
});
@@ -567,7 +567,7 @@ Evol.ViewOne = Backbone.View.extend({
567567
iconsPath=this.options.iconsPath || '';
568568

569569
if(this.model){
570-
var vs = this.model.get(uiPnl.attr);
570+
var vs = this.model.get(uiPnl.attribute);
571571
if(vs && vs.length>0){
572572
var TDbPM='<td class="evo-td-plusminus">'+Evol.UI.input.buttonsPlusMinus()+'</td>';
573573
_.each(vs, function(row, idx){

0 commit comments

Comments
 (0)