From d1ae0b1098f3948322b1c05e3aee28cc49502225 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 6 Jun 2012 14:44:36 +0000 Subject: [PATCH] Activate diff if value is > 50 chars, or has a new line --- etemplate/js/et2_widget_historylog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_historylog.js b/etemplate/js/et2_widget_historylog.js index 31ecc0b6a6..839ca6b301 100644 --- a/etemplate/js/et2_widget_historylog.js +++ b/etemplate/js/et2_widget_historylog.js @@ -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']);