mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
Handle null values
This commit is contained in:
parent
cc8891820c
commit
0700876775
@ -193,6 +193,21 @@ var et2_date = et2_inputWidget.extend({
|
||||
},
|
||||
|
||||
set_value: function(_value) {
|
||||
if(_value == null)
|
||||
{
|
||||
this.value = _value;
|
||||
|
||||
if(this.input_date)
|
||||
{
|
||||
this.input_date.val("");
|
||||
}
|
||||
if(this.input_time)
|
||||
{
|
||||
this.input_time.val("");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// Handle just time as a string in the form H:i
|
||||
if(typeof _value == 'string' && isNaN(_value)) {
|
||||
if(_value.indexOf(":") > 0 && this.type == "date-timeonly") {
|
||||
|
Loading…
Reference in New Issue
Block a user