partkeepr

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

commit e2e4c95f436892eb12466339445e2596a1aee462
parent 972c60c18040cdb6e547fd457dfe3635dbb20a8b
Author: Felicitus <felicitus@felicitus.org>
Date:   Wed, 18 Jul 2012 04:33:15 +0200

Some minor cosmetic adjustments to the preferences

Diffstat:
Msrc/frontend/js/Components/User/Preferences/DisplayPreferencesPanel.js | 2++
Msrc/frontend/js/Components/User/Preferences/FormattingPreferences.js | 9+++++++--
2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/frontend/js/Components/User/Preferences/DisplayPreferencesPanel.js b/src/frontend/js/Components/User/Preferences/DisplayPreferencesPanel.js @@ -4,6 +4,8 @@ Ext.define('PartKeepr.DisplayPreferencesPanel', { bodyStyle: 'background:#DBDBDB;padding: 10px;', initComponent: function () { this.showDescriptionsCheckbox = Ext.create("Ext.form.field.Checkbox", { + labelWidth: 120, + hideEmptyLabel: false, boxLabel: i18n("Show category descriptions"), handler: Ext.bind(this.showDescriptionsHandler, this) }); diff --git a/src/frontend/js/Components/User/Preferences/FormattingPreferences.js b/src/frontend/js/Components/User/Preferences/FormattingPreferences.js @@ -64,7 +64,7 @@ Ext.define('PartKeepr.FormattingPreferencesPanel', { this.priceNumDecimalsField = Ext.create("Ext.form.field.Number", { name: 'priceNumDecimalsField', fieldLabel: i18n('Decimal precision'), - labelWidth: 150, + labelWidth: 120, columnWidth: 0.5, minValue: 0, maxValue: 4, @@ -81,6 +81,8 @@ Ext.define('PartKeepr.FormattingPreferencesPanel', { this.useThousandSeparatorCheckbox = Ext.create("Ext.form.field.Checkbox", { boxLabel: i18n("Separate thousands"), + labelWidth: 120, + hideEmptyLabel: false, listeners: { change: function(field, newValue) { if (!this.loading) { @@ -93,6 +95,7 @@ Ext.define('PartKeepr.FormattingPreferencesPanel', { this.currencySymbolField = Ext.create("Ext.form.field.Text", { fieldLabel: i18n("Currency Symbol"), + labelWidth: 120, maxLength: 5, listeners: { change: function(field, newValue) { @@ -105,7 +108,9 @@ Ext.define('PartKeepr.FormattingPreferencesPanel', { }); this.currencyAtEndCheckbox = Ext.create("Ext.form.field.Checkbox", { - boxLabel: i18n("Currency at end"), + boxLabel: i18n("Currency Symbol after value"), + labelWidth: 120, + hideEmptyLabel: false, listeners: { change: function(field, newValue) { if (!this.loading) {