partkeepr

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

commit 3343a3635fe521cee5e6e049ddbdc4a8b80713ce
parent 79c2430e61bb6012fdebaff7c208250136df65d3
Author: Felicitus <felicitus@felicitus.org>
Date:   Thu, 23 Jul 2015 22:10:42 +0200

Order by the correct categoryPath property, disable automatic page size feature to avoid starting on page 3

Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Footprint/FootprintEditorComponent.js | 2+-
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Footprint/FootprintGrid.js | 25+++++++++++++------------
2 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Footprint/FootprintEditorComponent.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Footprint/FootprintEditorComponent.js @@ -9,7 +9,7 @@ Ext.define('PartKeepr.FootprintEditorComponent', { this.createStore({ sorters: [ { - property: 'category', + property: 'category.categoryPath', direction: 'ASC' },{ property: 'name', diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Footprint/FootprintGrid.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Footprint/FootprintGrid.js @@ -1,16 +1,17 @@ Ext.define('PartKeepr.FootprintGrid', { - extend: 'PartKeepr.EditorGrid', - xtype: 'partkeepr.FootprintGrid', - columns: [ - {header: i18n("Footprint"), dataIndex: 'name', flex: 1} - ], - addButtonText: i18n("Add Footprint"), + extend: 'PartKeepr.EditorGrid', + xtype: 'partkeepr.FootprintGrid', + columns: [ + {header: i18n("Footprint"), dataIndex: 'name', flex: 1} + ], + addButtonText: i18n("Add Footprint"), deleteButtonText: i18n("Delete Footprint"), - automaticPageSize: true, - features: [{ - ftype: 'grouping', - groupHeaderTpl: '{name} ({children.length})', - enableNoGroups:true - }] + features: [ + { + ftype: 'grouping', + groupHeaderTpl: '{name} ({children.length})', + enableNoGroups: true + } + ] }); \ No newline at end of file