diff --git a/plugins/libcalendaring/libcalendaring.js b/plugins/libcalendaring/libcalendaring.js index 5a42d557..3c612e12 100644 --- a/plugins/libcalendaring/libcalendaring.js +++ b/plugins/libcalendaring/libcalendaring.js @@ -1178,29 +1178,33 @@ rcube_libcalendaring.add_from_itip_mail = function(mime_id, task, status, dom_id rcube_libcalendaring.itip_delegate_dialog = function(callback, selector) { // show dialog for entering the delegatee address and comment - var html = '
' + - '
' + - '
' + + var dialog, buttons = []; + var form = $('' + + '
' + + '' + '' + '
' + - '
' + - '' + + '
' + + '' + + '' + '
' + - '
' + + '
' + '' + '
' + - '
' + - (selector && selector.length ? selector.html() : '') + - '
' + - ''; + ''); + + if (selector && selector.length) { + form.append( + $('
') + .append($('