Improving add new item dialog
authorMichael Spahn <m.spahn@metaways.de>
Mon, 17 Sep 2012 13:50:56 +0000 (15:50 +0200)
committerMichael Spahn <m.spahn@metaways.de>
Thu, 4 Oct 2012 13:54:57 +0000 (15:54 +0200)
Change-Id: I41d64b894c78970c1296c67dd05457fe3f9f3e5b
Reviewed-on: https://gerrit.tine20.org/tine20/1083
Tested-by: jenkins user
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
tine20/Inventory/js/InventoryItemEditDialog.js

index 7f21b08..afceed6 100644 (file)
@@ -111,7 +111,15 @@ Tine.Inventory.InventoryItemEditDialog = Ext.extend(Tine.widgets.dialog.EditDial
                     },
                     items: [
                         //Start name type
-                        [{
+                        [new Tine.Tinebase.widgets.keyfield.ComboBox({
+                            app: 'Inventory',
+                            keyFieldName: 'inventoryType',
+                            fieldLabel: this.app.i18n._('Type'),
+                            name: 'type',
+                            columnWidth: 0.5,
+                            allowBlank: false,
+                            maxLength: 100
+                        }), {
                         columnWidth: 1,
                         xtype: 'tine.widget.field.AutoCompleteField',
                         recordClass: this.recordClass,
@@ -120,15 +128,7 @@ Tine.Inventory.InventoryItemEditDialog = Ext.extend(Tine.widgets.dialog.EditDial
                         columnWidth: 0.5,
                         allowBlank: false,
                         maxLength: 100
-                        }, new Tine.Tinebase.widgets.keyfield.ComboBox({
-                            app: 'Inventory',
-                            keyFieldName: 'inventoryType',
-                            fieldLabel: this.app.i18n._('Type'),
-                            name: 'type',
-                            columnWidth: 0.5,
-                            allowBlank: false,
-                            maxLength: 100
-                        })],
+                        }],
                         //End name type
                         //Start ID
                         [{