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,
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
})
};