commit c33ac4f3351ac9675dc43c34c07bd0f34678f299
parent 5e5ffe73895b4c1d99ba0cf1750951218c4964bc
Author: felicitus <felicitus@felicitus.org>
Date: Fri, 6 Jul 2012 00:44:36 +0200
Use strict test against storage location ids, because sometimes, we still want to be able to set an empty value (e.g. inside the filter form).
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/frontend/js/Components/Widgets/StorageLocationComboBox.js b/src/frontend/js/Components/Widgets/StorageLocationComboBox.js
@@ -27,7 +27,7 @@ Ext.define("PartKeepr.StorageLocationComboBox",{
this.callParent();
},
setValue: function (val) {
- if (val == 0) {
+ if (val === 0) {
return;
}
this.callParent(arguments);