1
0
Fork 0
forked from 0x2620/oxjs

DateInput/TimeInput/DateTimeInput: don't fail when options are undefined

This commit is contained in:
rolux 2012-06-14 15:50:00 +02:00
commit 6bdf96fe6b
3 changed files with 10 additions and 11 deletions

View file

@ -25,8 +25,9 @@ Ox.DateInput = function(options, self) {
weekday: false,
width: {
day: 32,
month: options.format == 'long' ? 80 : (options.format == 'medium' ? 40 : 32),
weekday: options.format == 'long' ? 80 : 40,
month: options && options.format == 'long' ? 80
: options && options.format == 'medium' ? 40 : 32,
weekday: options && options.format == 'long' ? 80 : 40,
year: 48
}
}, options || {})
@ -108,7 +109,6 @@ Ox.DateInput = function(options, self) {
{title: '', width: 8}, {title: ',', width: 8}
]),
split: split,
value: self.options.value,
width: 0
}), self);