mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-06 05:19:18 +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) {
|
set_type: function(_type) {
|
||||||
this.type = _type;
|
if(_type != this._type)
|
||||||
this.createInputWidget();
|
{
|
||||||
|
this.type = _type;
|
||||||
|
this.createInputWidget();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
set_value: function(_value) {
|
set_value: function(_value) {
|
||||||
var old_value = this.value;
|
var old_value = this.getValue();
|
||||||
if(_value == null || _value == 0)
|
if(_value == null || _value == 0)
|
||||||
{
|
{
|
||||||
this.value = _value;
|
this.value = _value;
|
||||||
@ -498,7 +501,7 @@ var et2_date_ro = et2_valueWidget.extend([et2_IDetachedDOM], {
|
|||||||
|
|
||||||
if(_value == 0 || _value == null)
|
if(_value == 0 || _value == null)
|
||||||
{
|
{
|
||||||
this.span.attr("datetime", "");
|
this.span.attr("datetime", "").text("");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user