partkeepr

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

commit c9034ae0955baeb51017cc1707ae378c1e75a0c3
parent 9c4435793a2f7b433973b45b856c7330f3fb20ac
Author: Timo A. Hummel <felicitus@felicitus.org>
Date:   Mon, 27 Jul 2015 21:24:13 +0200

Reformatted code to comply with coding standards

Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/StorageLocation/StorageLocationGrid.js | 74+++++++++++++++++++++++++++++++++++++-------------------------------------
1 file changed, 37 insertions(+), 37 deletions(-)

diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/StorageLocation/StorageLocationGrid.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/StorageLocation/StorageLocationGrid.js @@ -1,54 +1,54 @@ Ext.define('PartKeepr.StorageLocationGrid', { - extend: 'PartKeepr.EditorGrid', - xtype: 'partkeepr.StorageLocationGrid', - - features: [ - { - ftype: 'grouping', - groupHeaderTpl: '{name} ({children.length})', - enableNoGroups: true - } - ], + extend: 'PartKeepr.EditorGrid', + xtype: 'partkeepr.StorageLocationGrid', - columns: [ - {header: i18n("Storage Location"), dataIndex: 'name', flex: 1} - ], - addButtonText: i18n("Add Storage Location"), - addButtonIcon: 'bundles/brainbitsfugueicons/icons/fugue/16/wooden-box--plus.png', + features: [ + { + ftype: 'grouping', + groupHeaderTpl: '{name} ({children.length})', + enableNoGroups: true + } + ], + + columns: [ + {header: i18n("Storage Location"), dataIndex: 'name', flex: 1} + ], + addButtonText: i18n("Add Storage Location"), + addButtonIcon: 'bundles/brainbitsfugueicons/icons/fugue/16/wooden-box--plus.png', deleteButtonText: i18n("Delete Storage Location"), deleteButtonIcon: 'bundles/brainbitsfugueicons/icons/fugue/16/wooden-box--minus.png', initComponent: function () { - this.callParent(); - - // Adds a button which shows the multi-create window - this.multiCreateButton = Ext.create("Ext.button.Button", { - icon: 'bundles/partkeeprfrontend/images/icons/storagelocation_multiadd.png', - tooltip: i18n("Multi-create storage locations"), - handler: this.onMultiCreateClick, - scope: this - }); - - this.topToolbar.insert(2, {xtype: 'tbseparator'}); - this.topToolbar.insert(3, this.multiCreateButton); + this.callParent(); + + // Adds a button which shows the multi-create window + this.multiCreateButton = Ext.create("Ext.button.Button", { + icon: 'bundles/partkeeprfrontend/images/icons/storagelocation_multiadd.png', + tooltip: i18n("Multi-create storage locations"), + handler: this.onMultiCreateClick, + scope: this + }); + + this.topToolbar.insert(2, {xtype: 'tbseparator'}); + this.topToolbar.insert(3, this.multiCreateButton); }, /** * Creates a new storage location multi-create window. */ onMultiCreateClick: function () { - var j = Ext.create("PartKeepr.StorageLocationMultiCreateWindow", { - listeners: { - destroy: { - fn: this.onMultiCreateWindowDestroy, - scope: this - } - } - }); - j.show(); + var j = Ext.create("PartKeepr.StorageLocationMultiCreateWindow", { + listeners: { + destroy: { + fn: this.onMultiCreateWindowDestroy, + scope: this + } + } + }); + j.show(); }, /** * Reloads the store after the multi-create window was closed */ onMultiCreateWindowDestroy: function () { - this.store.load(); + this.store.load(); } }); \ No newline at end of file