X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=lib%2Fenyo-x%2Fsource%2Fviews%2Ftransaction_list_container.js;h=7e3518e837b8117f778a0ee68cba15fa831db04a;hb=78cafc1dcc6c67f29dc61d5c88ee91d99cbb0ed6;hp=aeab3307d51a595db3ab88d6846ebf0a8a5a99c4;hpb=385e2c421d524f2e46c7d3409712e9098f9b3a0c;p=xtuple diff --git a/lib/enyo-x/source/views/transaction_list_container.js b/lib/enyo-x/source/views/transaction_list_container.js index aeab3307d..7e3518e83 100644 --- a/lib/enyo-x/source/views/transaction_list_container.js +++ b/lib/enyo-x/source/views/transaction_list_container.js @@ -33,7 +33,8 @@ trailing:true, white:true, strict:false*/ onListItemMenuTap: "showListItemMenu", onParameterChange: "requery", onProcessingChanged: "processingChanged", - onSelectionChanged: "selectionChanged" + onSelectionChanged: "selectionChanged", + onUpdateHeader: "updateHeader" }, init: false, components: [ @@ -48,7 +49,7 @@ trailing:true, white:true, strict:false*/ {kind: "onyx.Menu", name: "actionMenu"} ]} ]}, - {classes: "xv-header", content: "_search".loc()}, + {classes: "xv-header", name: "transactionListHeader", content: "_search".loc()}, {kind: "XV.ScrollableGroupbox", name: "parameterScroller", classes: "xv-search-container", fit: true} ]}, {name: "listPanel", kind: "FittableRows", components: [ @@ -277,6 +278,14 @@ trailing:true, white:true, strict:false*/ for (i = 0; i < collection.length; i++) { collection.at(i).transactionDate = transDate; } + }, + updateHeader: function (inSender, inEvent) { + if (inEvent.noItemFound) { + this.$.transactionListHeader.setContent("_noItemFound".loc() + ": " + inEvent.data); + + } else if (this.$.transactionListHeader.getContent() !== "_search".loc()) { + this.$.transactionListHeader.setContent(""); + } } };