forked from 0x2620/oxjs
DateInput/TimeInput/DateTimeInput: don't fail when options are undefined
This commit is contained in:
parent
91ee1419aa
commit
6bdf96fe6b
3 changed files with 10 additions and 11 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue