mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-60817 file: Populate header only if exists
This commit is contained in:
parent
aab8d9a1c0
commit
dacdc4a467
@ -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();
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user