reverting timeinput update

This commit is contained in:
rolux 2011-06-01 22:12:22 +02:00
parent 3e03e00a72
commit e25b7a2ee2

View file

@ -23,6 +23,7 @@ Ox.TimeInput = function(options, self) {
seconds: false, seconds: false,
milliseconds: false, milliseconds: false,
value: Ox.formatDate(new Date(), '%T'), value: Ox.formatDate(new Date(), '%T'),
/*
width: { width: {
hours: 32, hours: 32,
minutes: 32, minutes: 32,
@ -30,6 +31,7 @@ Ox.TimeInput = function(options, self) {
milliseconds: 40, milliseconds: 40,
ampm: 32 ampm: 32
} }
*/
}) })
.options(options || {}); .options(options || {});
@ -53,7 +55,7 @@ Ox.TimeInput = function(options, self) {
id: 'hours', id: 'hours',
textAlign: 'right', textAlign: 'right',
value: self.values.hours, value: self.values.hours,
width: self.options.width.hours width: 32//self.options.width.hours
}), }),
minutes: new Ox.Input({ minutes: new Ox.Input({
autocomplete: $.map(Ox.range(0, 60), function(v) { autocomplete: $.map(Ox.range(0, 60), function(v) {
@ -64,7 +66,7 @@ Ox.TimeInput = function(options, self) {
id: 'minutes', id: 'minutes',
textAlign: 'right', textAlign: 'right',
value: self.values.minutes, value: self.values.minutes,
width: self.options.width.minutes width: 32//self.options.width.minutes
}), }),
seconds: new Ox.Input({ seconds: new Ox.Input({
autocomplete: $.map(Ox.range(0, 60), function(v) { autocomplete: $.map(Ox.range(0, 60), function(v) {
@ -75,7 +77,7 @@ Ox.TimeInput = function(options, self) {
id: 'seconds', id: 'seconds',
textAlign: 'right', textAlign: 'right',
value: self.values.seconds, value: self.values.seconds,
width: self.options.width.seconds width: 32//self.options.width.seconds
}), }),
milliseconds: new Ox.Input({ milliseconds: new Ox.Input({
autocomplete: $.map(Ox.range(0, 1000), function(v) { autocomplete: $.map(Ox.range(0, 1000), function(v) {
@ -86,7 +88,7 @@ Ox.TimeInput = function(options, self) {
id: 'milliseconds', id: 'milliseconds',
textAlign: 'right', textAlign: 'right',
value: self.values.milliseconds, value: self.values.milliseconds,
width: self.options.width.milliseconds width: 40//self.options.width.milliseconds
}), }),
ampm: new Ox.Input({ ampm: new Ox.Input({
autocomplete: ['AM', 'PM'], autocomplete: ['AM', 'PM'],
@ -94,7 +96,7 @@ Ox.TimeInput = function(options, self) {
autocompleteReplaceCorrect: true, autocompleteReplaceCorrect: true,
id: 'ampm', id: 'ampm',
value: self.values.ampm, value: self.values.ampm,
width: self.options.width.seconds width: 32//self.options.width.seconds
}) })
}; };