mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-18 04:20:05 +02:00
Setup data_format customfileds "date" and "date-time" in client-side
This commit is contained in:
@@ -420,6 +420,14 @@ var et2_customfields_list = et2_valueWidget.extend([et2_IDetachedDOM, et2_IInput
|
||||
|
||||
return true;
|
||||
},
|
||||
_setup_date: function(field_name, field, attrs) {
|
||||
attrs.data_format = field.len ? field.len : 'Y-m-d';
|
||||
return true;
|
||||
},
|
||||
_setup_date_time: function(field_name, field, attrs) {
|
||||
attrs.data_format = field.len ? field.len : 'Y-m-d H:i:s';
|
||||
return true;
|
||||
},
|
||||
_setup_htmlarea: function(field_name, field, attrs) {
|
||||
attrs.config = field.config ? field.config : {};
|
||||
attrs.config.toolbarStartupExpanded = false;
|
||||
|
Reference in New Issue
Block a user