Files: Fixed empty dialogs regression in Larry skin
This commit is contained in:
parent
1d9490f60b
commit
2479385e04
1 changed files with 5 additions and 1 deletions
|
@ -916,7 +916,8 @@ function kolab_dialog_show(content, params, onopen)
|
|||
params.close = function(e, ui) {
|
||||
var elem, stack = rcmail.dialog_stack;
|
||||
|
||||
content.appendTo(document.body).hide();
|
||||
content.appendTo(document.body);
|
||||
content.hide(); // for Larry's dialogs
|
||||
$(this).parent().remove(); // remove dialog
|
||||
|
||||
// focus previously focused element (guessed)
|
||||
|
@ -932,6 +933,9 @@ function kolab_dialog_show(content, params, onopen)
|
|||
rcmail.ksearch_blur();
|
||||
};
|
||||
|
||||
// This is required for Larry's dialogs
|
||||
params.create = function() { content.show(); };
|
||||
|
||||
// display it as popup
|
||||
var dialog = rcmail.show_popup_dialog(content, params.title, params.buttons, params);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue