partkeepr

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

commit 2e57bca500403f1cf1a891109f45ad40477b2cb4
parent 4c9ea446b51812bd74195a05a715178906938d41
Author: Felicitus <felicitus@felicitus.org>
Date:   Wed, 13 Jul 2011 10:49:29 +0200

Added bugfix for refresh bug in extjs

Diffstat:
Mfrontend/js/bugfixes.js | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/frontend/js/bugfixes.js b/frontend/js/bugfixes.js @@ -96,6 +96,15 @@ Ext.view.AbstractView.override({ if (store && (!initial || store.getCount())) { me.refresh(true); } + }, + onItemSelect: function(record) { + var node = this.getNode(record); + if (Ext.fly(node)) { + Ext.fly(node).addCls(this.selectedItemCls); + } else { + Ext.Function.defer(this.onItemSelect, 500, this, [record]); + } + } });