MDL-60817 file: Populate header only if exists

This commit is contained in:
Peter Dias 2020-03-19 12:00:03 +08:00 committed by Víctor Déniz Falcón
parent aab8d9a1c0
commit dacdc4a467

View File

@ -875,7 +875,9 @@ M.form_filemanager.init = function(Y, options) {
node.one('.fp-dlg-butcancel').on('click', handle_cancel, this);
}
this.confirm_dlg.dlgopt = dialog_options;
this.confirm_dlg.set('headerContent', dialog_options.header);
if (typeof dialog_options.header != 'undefined') {
this.confirm_dlg.set('headerContent', dialog_options.header);
}
this.confirm_dlg_node.one('.fp-dlg-text').setContent(dialog_options.message);
this.confirm_dlg.show();
},