partkeepr

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

commit 81dedf6aea729182f367761b321e9c0e1e3fffc0
parent 5700e58e9161866c5cfa2bf5af2cf9384236f9ca
Author: Felicitus <felicitus@felicitus.org>
Date:   Sat, 12 May 2012 13:29:21 +0200

Hopefully fixes the user prefs, related to #71

The ExtJS API (and docs) aren't very precise, and the code is pretty much undocumented (only the API is), so let's hope for the best.

Diffstat:
Msrc/frontend/js/PartKeepr.js | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/frontend/js/PartKeepr.js b/src/frontend/js/PartKeepr.js @@ -66,8 +66,10 @@ Ext.application({ onLogin: function () { this.createGlobalStores(); - this.getUserPreferenceStore().getProxy().getReader().read(PartKeepr.initialUserPreferences); - this.reloadStores(); + var records = this.getUserPreferenceStore().getProxy().getReader().read(PartKeepr.initialUserPreferences); + this.getUserPreferenceStore().loadRecords(records.records); + + this.reloadStores(); var j = Ext.create("PartKeepr.PartManager", { title: i18n("Part Manager"),