partkeepr

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

commit ca52cc6adaadd8408f219c78f474153a1d210dec
parent 2d774c3e91a202cc646586cf7eb88afac6ee56e8
Author: Felicitus <felicitus@felicitus.org>
Date:   Wed,  4 Jan 2012 18:11:05 +0100

Implicitly create proxies in order to resolve most cross-area filtering issues

Diffstat:
Msrc/frontend/js/Components/Distributor/DistributorEditorComponent.js | 1+
Msrc/frontend/js/Components/Footprint/FootprintEditorComponent.js | 1+
Msrc/frontend/js/Components/Manufacturer/ManufacturerEditorComponent.js | 5+++--
Msrc/frontend/js/Components/PartUnit/PartUnitEditorComponent.js | 5+++--
Msrc/frontend/js/Components/Project/ProjectEditorComponent.js | 5+++--
Msrc/frontend/js/Components/StorageLocation/StorageLocationEditorComponent.js | 5+++--
Msrc/frontend/js/Components/SystemNotice/SystemNoticeEditorComponent.js | 5+++--
Msrc/frontend/js/Components/Unit/UnitEditorComponent.js | 5+++--
Msrc/frontend/js/Components/User/UserEditorComponent.js | 5+++--
9 files changed, 23 insertions(+), 14 deletions(-)

diff --git a/src/frontend/js/Components/Distributor/DistributorEditorComponent.js b/src/frontend/js/Components/Distributor/DistributorEditorComponent.js @@ -7,6 +7,7 @@ Ext.define('PartKeepr.DistributorEditorComponent', { model: 'PartKeepr.Distributor', initComponent: function () { this.createStore({ + proxy: PartKeepr.getRESTProxy("Distributor"), sorters: [{ property: 'name', direction:'ASC' diff --git a/src/frontend/js/Components/Footprint/FootprintEditorComponent.js b/src/frontend/js/Components/Footprint/FootprintEditorComponent.js @@ -7,6 +7,7 @@ Ext.define('PartKeepr.FootprintEditorComponent', { model: 'PartKeepr.Footprint', initComponent: function () { this.createStore({ + proxy: PartKeepr.getRESTProxy("Footprint"), sorters: [{ property: 'name', direction:'ASC' diff --git a/src/frontend/js/Components/Manufacturer/ManufacturerEditorComponent.js b/src/frontend/js/Components/Manufacturer/ManufacturerEditorComponent.js @@ -8,8 +8,9 @@ Ext.define('PartKeepr.ManufacturerEditorComponent', { initComponent: function () { this.createStore({ sorters: [{ - property: 'name', - direction:'ASC' + proxy: PartKeepr.getRESTProxy("Manufacurer"), + property: 'name', + direction:'ASC' }] }); diff --git a/src/frontend/js/Components/PartUnit/PartUnitEditorComponent.js b/src/frontend/js/Components/PartUnit/PartUnitEditorComponent.js @@ -10,8 +10,9 @@ Ext.define('PartKeepr.PartUnitEditorComponent', { initComponent: function () { this.createStore({ sorters: [{ - property: 'name', - direction:'ASC' + proxy: PartKeepr.getRESTProxy("PartUnit"), + property: 'name', + direction:'ASC' }] }); diff --git a/src/frontend/js/Components/Project/ProjectEditorComponent.js b/src/frontend/js/Components/Project/ProjectEditorComponent.js @@ -11,8 +11,9 @@ Ext.define('PartKeepr.ProjectEditorComponent', { initComponent: function () { this.createStore({ sorters: [{ - property: 'name', - direction:'ASC' + proxy: PartKeepr.getRESTProxy("Project"), + property: 'name', + direction:'ASC' }] }); diff --git a/src/frontend/js/Components/StorageLocation/StorageLocationEditorComponent.js b/src/frontend/js/Components/StorageLocation/StorageLocationEditorComponent.js @@ -8,8 +8,9 @@ Ext.define('PartKeepr.StorageLocationEditorComponent', { initComponent: function () { this.createStore({ sorters: [{ - property: 'name', - direction:'ASC' + proxy: PartKeepr.getRESTProxy("StorageLocation"), + property: 'name', + direction:'ASC' }] }); diff --git a/src/frontend/js/Components/SystemNotice/SystemNoticeEditorComponent.js b/src/frontend/js/Components/SystemNotice/SystemNoticeEditorComponent.js @@ -11,8 +11,9 @@ Ext.define('PartKeepr.SystemNoticeEditorComponent', { initComponent: function () { this.createStore({ sorters: [{ - property: 'date', - direction:'DESC' + proxy: PartKeepr.getRESTProxy("SystemNotice"), + property: 'date', + direction:'DESC' }] }); diff --git a/src/frontend/js/Components/Unit/UnitEditorComponent.js b/src/frontend/js/Components/Unit/UnitEditorComponent.js @@ -10,8 +10,9 @@ Ext.define('PartKeepr.UnitEditorComponent', { initComponent: function () { this.createStore({ sorters: [{ - property: 'name', - direction:'ASC' + proxy: PartKeepr.getRESTProxy("Unit"), + property: 'name', + direction:'ASC' }] }); diff --git a/src/frontend/js/Components/User/UserEditorComponent.js b/src/frontend/js/Components/User/UserEditorComponent.js @@ -12,8 +12,9 @@ Ext.define('PartKeepr.UserEditorComponent', { initComponent: function () { this.createStore({ sorters: [{ - property: 'username', - direction:'ASC' + proxy: PartKeepr.getRESTProxy("User"), + property: 'username', + direction:'ASC' }] });