mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 00:18:25 +01:00
Fix blank (null) dates
This commit is contained in:
parent
47a2858f7a
commit
e2b13e3821
@ -66,11 +66,17 @@ var et2_date = et2_inputWidget.extend({
|
|||||||
{
|
{
|
||||||
this.egw().time(this.input_date);
|
this.egw().time(this.input_date);
|
||||||
}
|
}
|
||||||
// Update internal value
|
// Update internal value when changed
|
||||||
var self = this;
|
var self = this;
|
||||||
this.input_date.datepicker("option","onSelect", function(text) {
|
this.input_date.datepicker("option","onSelect", function(text) {
|
||||||
self.set_value(text);
|
self.set_value(text);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Framewok skips nulls, but null needs to be processed here
|
||||||
|
if(this.options.value == null)
|
||||||
|
{
|
||||||
|
this.set_value(null);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
set_type: function(_type) {
|
set_type: function(_type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user