partkeepr

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

commit 8141e1c2b935e0a3595906acd5593fb519b0d4df
parent 1adc78d4a69af76456128fa15dc0980b413af33c
Author: Timo A. Hummel <timo@netraver.de>
Date:   Mon,  6 Jun 2011 18:57:32 +0200

Hide detail panel by default, show it as soon as a part is selected

Diffstat:
Mfrontend/js/Components/Part/PartsManager.js | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/frontend/js/Components/Part/PartsManager.js b/frontend/js/Components/Part/PartsManager.js @@ -23,9 +23,7 @@ Ext.define('PartDB2.PartManager', { } }, this)); - //this.editor = Ext.create("PartDB2.PartEditor", { region: 'south', store: this.getStore() }); - - this.detail = Ext.create("PartDB2.PartDisplay", { region: 'east', split: true, width: 300}); + this.detail = Ext.create("PartDB2.PartDisplay", { hidden: true, region: 'east', split: true, width: 300}); this.detail.on("editPart", this.onEditPart, this); this.grid = Ext.create("PartDB2.PartsGrid", { region: 'center', layout: 'fit', store: this.getStore()}); @@ -74,6 +72,7 @@ Ext.define('PartDB2.PartManager', { j.show(); }, onItemSelect: function (r) { + this.detail.show(); this.detail.setValues(r); }, loadPart: function (id, handler) {