From: Greg Pazo Date: Mon, 29 Sep 2014 19:56:58 +0000 (-0400) Subject: Merge pull request #1858 from shackbarth/1854 X-Git-Tag: v4.7.0-beta.2~1 X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=78cafc1dcc6c67f29dc61d5c88ee91d99cbb0ed6;hp=0c68eaab43ffa6cba0cc6629d0145a68225a3550;p=xtuple Merge pull request #1858 from shackbarth/1854 allow headers on transaction lists --- diff --git a/lib/enyo-x/source/views/transaction_list_container.js b/lib/enyo-x/source/views/transaction_list_container.js index 2116df4d1..7e3518e83 100644 --- a/lib/enyo-x/source/views/transaction_list_container.js +++ b/lib/enyo-x/source/views/transaction_list_container.js @@ -227,7 +227,8 @@ trailing:true, white:true, strict:false*/ */ setList: function (options) { var component, - list = options.list; + contentHeader = this.$.contentHeader, + list = options.list; component = this.createComponent({ name: "list", @@ -248,6 +249,12 @@ trailing:true, white:true, strict:false*/ memoizeEnabled: false, fit: true }); + + contentHeader.destroyClientControls(); + if (component.headerComponents) { + contentHeader.createComponents(component.headerComponents); + contentHeader.render(); + } } this.init = true;