Commit 7aed289a authored by Ruslan Kabalin's avatar Ruslan Kabalin
Browse files

filebrowser: show file deleted message in filebrowser


Signed-off-by: default avatarRuslan Kabalin <ruslan.kabalin@luns.net.uk>
parent afc0315e
......@@ -869,7 +869,7 @@ function pieform_element_filebrowser_delete(Pieform $form, $element, $artefact)
'error' => false,
'deleted' => true,
'message' => get_string('filethingdeleted', 'artefact.file',
get_string($artefact->get('artefacttype'), 'artefact.file')),
get_string($artefact->get('artefacttype'), 'artefact.file') . ' ' . $artefact->get('title')),
'quotaused' => $USER->get('quotaused'),
'quota' => $USER->get('quota'),
'newlist' => pieform_element_filebrowser_build_filelist($form, $element, $parentfolder),
......
......@@ -565,7 +565,7 @@ function FileBrowser(idprefix, folderid, config, globalconfig) {
this.callback = function (form, data) {
self.form = form; // ????
if (data.uploaded || data.error) {
if (data.uploaded || data.error || data.deleted) {
self.callback_feedback(data); // add/update message
}
// Only update the file listing if the user hasn't changed folders yet
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment