mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 08:19:45 +01:00
Only re-create the widget if the type is actually changed
This commit is contained in:
parent
e26500aae7
commit
9a5ce92eb4
@ -74,12 +74,15 @@ var et2_date = et2_inputWidget.extend({
|
||||
},
|
||||
|
||||
set_type: function(_type) {
|
||||
this.type = _type;
|
||||
this.createInputWidget();
|
||||
if(_type != this._type)
|
||||
{
|
||||
this.type = _type;
|
||||
this.createInputWidget();
|
||||
}
|
||||
},
|
||||
|
||||
set_value: function(_value) {
|
||||
var old_value = this.value;
|
||||
var old_value = this.getValue();
|
||||
if(_value == null || _value == 0)
|
||||
{
|
||||
this.value = _value;
|
||||
@ -498,7 +501,7 @@ var et2_date_ro = et2_valueWidget.extend([et2_IDetachedDOM], {
|
||||
|
||||
if(_value == 0 || _value == null)
|
||||
{
|
||||
this.span.attr("datetime", "");
|
||||
this.span.attr("datetime", "").text("");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user