From e25b7a2ee23a63d52af508ea9c3b8b6b8c02bfbe Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 1 Jun 2011 22:12:22 +0200 Subject: [PATCH] reverting timeinput update --- source/Ox.UI/js/Form/Ox.TimeInput.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/source/Ox.UI/js/Form/Ox.TimeInput.js b/source/Ox.UI/js/Form/Ox.TimeInput.js index 98bab378..8e325477 100644 --- a/source/Ox.UI/js/Form/Ox.TimeInput.js +++ b/source/Ox.UI/js/Form/Ox.TimeInput.js @@ -23,6 +23,7 @@ Ox.TimeInput = function(options, self) { seconds: false, milliseconds: false, value: Ox.formatDate(new Date(), '%T'), + /* width: { hours: 32, minutes: 32, @@ -30,6 +31,7 @@ Ox.TimeInput = function(options, self) { milliseconds: 40, ampm: 32 } + */ }) .options(options || {}); @@ -53,7 +55,7 @@ Ox.TimeInput = function(options, self) { id: 'hours', textAlign: 'right', value: self.values.hours, - width: self.options.width.hours + width: 32//self.options.width.hours }), minutes: new Ox.Input({ autocomplete: $.map(Ox.range(0, 60), function(v) { @@ -64,7 +66,7 @@ Ox.TimeInput = function(options, self) { id: 'minutes', textAlign: 'right', value: self.values.minutes, - width: self.options.width.minutes + width: 32//self.options.width.minutes }), seconds: new Ox.Input({ autocomplete: $.map(Ox.range(0, 60), function(v) { @@ -75,7 +77,7 @@ Ox.TimeInput = function(options, self) { id: 'seconds', textAlign: 'right', value: self.values.seconds, - width: self.options.width.seconds + width: 32//self.options.width.seconds }), milliseconds: new Ox.Input({ autocomplete: $.map(Ox.range(0, 1000), function(v) { @@ -86,7 +88,7 @@ Ox.TimeInput = function(options, self) { id: 'milliseconds', textAlign: 'right', value: self.values.milliseconds, - width: self.options.width.milliseconds + width: 40//self.options.width.milliseconds }), ampm: new Ox.Input({ autocomplete: ['AM', 'PM'], @@ -94,7 +96,7 @@ Ox.TimeInput = function(options, self) { autocompleteReplaceCorrect: true, id: 'ampm', value: self.values.ampm, - width: self.options.width.seconds + width: 32//self.options.width.seconds }) };