Hide compare button if changelog only has one single entry
This commit is contained in:
parent
435b4483ec
commit
944985314e
1 changed files with 3 additions and 2 deletions
|
@ -1060,7 +1060,7 @@ function rcube_calendar_ui(settings)
|
||||||
op_append = '';
|
op_append = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$('<tr class="' + (i == last ? 'last' : (i == first ? 'first' : '')) + (accessible ? '' : 'undisclosed') + '">')
|
$('<tr class="' + (i == first ? 'first' : (i == last ? 'last' : '')) + (accessible ? '' : 'undisclosed') + '">')
|
||||||
.append('<td class="diff">' + (accessible && change.op != 'DELETE' ?
|
.append('<td class="diff">' + (accessible && change.op != 'DELETE' ?
|
||||||
'<input type="radio" name="rev1" class="diff-rev1" value="' + change.rev + '" title="" '+ (i == last ? 'checked="checked"' : '') +' /> '+
|
'<input type="radio" name="rev1" class="diff-rev1" value="' + change.rev + '" title="" '+ (i == last ? 'checked="checked"' : '') +' /> '+
|
||||||
'<input type="radio" name="rev2" class="diff-rev2" value="' + change.rev + '" title="" '+ (i == first ? 'checked="checked"' : '') +' /></td>'
|
'<input type="radio" name="rev2" class="diff-rev2" value="' + change.rev + '" title="" '+ (i == first ? 'checked="checked"' : '') +' /></td>'
|
||||||
|
@ -1073,6 +1073,7 @@ function rcube_calendar_ui(settings)
|
||||||
.appendTo(tbody);
|
.appendTo(tbody);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (first > 0)
|
||||||
$('#eventhistory .compare-button').fadeIn(200);
|
$('#eventhistory .compare-button').fadeIn(200);
|
||||||
|
|
||||||
// set dialog size according to content
|
// set dialog size according to content
|
||||||
|
|
Loading…
Add table
Reference in a new issue