From 944985314edc94a229f1ba9d5f9151c3ca2e799f Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 6 Aug 2014 16:23:24 +0200 Subject: [PATCH] Hide compare button if changelog only has one single entry --- plugins/calendar/calendar_ui.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/calendar/calendar_ui.js b/plugins/calendar/calendar_ui.js index 23a7d541..932e7ea4 100644 --- a/plugins/calendar/calendar_ui.js +++ b/plugins/calendar/calendar_ui.js @@ -1060,7 +1060,7 @@ function rcube_calendar_ui(settings) op_append = ''; } - $('') + $('') .append('' + (accessible && change.op != 'DELETE' ? ' '+ '' @@ -1073,7 +1073,8 @@ function rcube_calendar_ui(settings) .appendTo(tbody); } - $('#eventhistory .compare-button').fadeIn(200); + if (first > 0) + $('#eventhistory .compare-button').fadeIn(200); // set dialog size according to content me.dialog_resize($dialog.get(0), $dialog.height(), 600);