forked from extern/egroupware
Activate diff if value is > 50 chars, or has a new line
This commit is contained in:
parent
4f4355f0f8
commit
d1ae0b1098
@ -349,7 +349,7 @@ var et2_historylog = et2_valueWidget.extend([et2_IDataProvider],{
|
||||
* How to tell if the row needs a diff widget or not
|
||||
*/
|
||||
_needsDiffWidget: function(columnName, value) {
|
||||
return columnName == 'note' || columnName == 'description' || value && value.length > 100
|
||||
return columnName == 'note' || columnName == 'description' || (value && (value.length > 50 || value.match(/\n/g)))
|
||||
},
|
||||
});
|
||||
et2_register_widget(et2_historylog, ['historylog']);
|
||||
|
Loading…
Reference in New Issue
Block a user