partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit b16b39c334c420a82803f57611473745e8c22ed8
parent 344cd6e98ff87ce60d868e44383fb290ac4b4f5e
Author: Felicia Hummel <felicitus@felicitus.org>
Date:   Tue,  2 Aug 2016 22:06:24 +0200

Merge pull request #705 from partkeepr/PartKeepr-509

Properly update the second tabbar
Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartsManager.js | 28++++++++++++++++------------
1 file changed, 16 insertions(+), 12 deletions(-)

diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartsManager.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartsManager.js @@ -188,20 +188,22 @@ Ext.define('PartKeepr.PartManager', { this.down("#thumbnailViewStatusMessage").setText(q); }, this); + this.thumbnailViewToolbar = Ext.create("Ext.toolbar.Paging", { + store: this.grid.store, + enableOverflow: true, + dock: 'bottom', + displayInfo: false, + items: [{xtype: 'tbfill'}, { + xtype: 'tbtext', + itemId: "thumbnailViewStatusMessage" + } + ] + }); + this.thumbnailPanel = Ext.create("Ext.panel.Panel", { title: i18n("Thumbnail View"), scrollable: true, - bbar: Ext.create("Ext.toolbar.Paging", { - store: this.grid.store, - enableOverflow: true, - dock: 'bottom', - displayInfo: false, - items: [{xtype: 'tbfill'}, { - xtype: 'tbtext', - itemId: "thumbnailViewStatusMessage" - } - ] - }), + bbar: this.thumbnailViewToolbar, items: this.thumbnailView }); @@ -214,7 +216,9 @@ Ext.define('PartKeepr.PartManager', { this.loadMask = Ext.create("Ext.LoadMask", { store: this.grid.store, target: this.thumbnailPanel - }) + }); + + this.thumbnailViewToolbar.onLoad(); }, this); if (this.compactLayout) {