partkeepr

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

commit c6c8ece8b7de2c61120837010e153bf43908bb9d
parent c6921271f4a01afdc46e7433732a1fff804be3d1
Author: Timo A. Hummel <timo@netraver.de>
Date:   Thu, 26 May 2011 00:03:41 +0200

Added clearable combobox for storage locations and footprints

Diffstat:
Mfrontend/index.html | 2++
Mfrontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerAddPartForm.js | 9++-------
2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/frontend/index.html b/frontend/index.html @@ -20,6 +20,8 @@ <script type="text/javascript" src="js/org.phpjs.lib/php.default.min.js"></script> + <script type="text/javascript" src="js/Ext.ux/ClearableComboBox.js"></script> + <script type="text/javascript" src="js/org.jerrymouse.util.locale/locale.js"></script> <script type="text/javascript" src="js/org.jerrymouse.util.locale/locales/en_US.js"></script> <script type="text/javascript" src="js/org.jerrymouse.util.locale/locales/de_DE.js"></script> diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerAddPartForm.js b/frontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerAddPartForm.js @@ -69,7 +69,7 @@ de.RaumZeitLabor.PartDB2.PartsManagerAddPartForm = Ext.extend(Ext.form.FormPanel ] }); - this.partStorageLocation = new Ext.form.ComboBox({ + this.partStorageLocation = new Ext.form.ClearableComboBox({ store: this.storageLocationStore, displayField: "name", anchor: '100%', @@ -103,14 +103,9 @@ de.RaumZeitLabor.PartDB2.PartsManagerAddPartForm = Ext.extend(Ext.form.FormPanel ] }); - this.footprintCombo = new Ext.form.ComboBox({ + this.footprintCombo = new Ext.form.ClearableComboBox({ validator: function (value) { return true; - /*if (value == "") { - return "Es muß ein Footprint ausgewählt werden"; - } - console.log(this.footprintCombo.getValue()); - console.log(value);*/ }.createDelegate(this), store: this.footprintStore, displayField: "footprint",