Commit 0f25014d authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1797813: Pass back folder id when updating file metadata"

parents 25826f89 8690a10a
......@@ -425,6 +425,7 @@ var FileBrowser = (function($) {
var name = $(this).prop('name').match(new RegExp('^' + self.id + "_([a-z]+)\\[(\\d+)\\]$"));
if (name && name[1]) {
if (name[1] == 'edit') {
$(this).off('click');
$(this).on('click', self.edit_form);
}
else if (name[1] == 'delete') {
......
......@@ -1269,6 +1269,7 @@ function pieform_element_filebrowser_update(Pieform $form, $element, $data) {
$returndata = array(
'error' => false,
'message' => get_string('changessaved', 'artefact.file'),
'folder' => $artefact->get('parent'),
'newlist' => pieform_element_filebrowser_build_filelist($form, $element, $artefact->get('parent'), null, $user, $group, $institution),
);
......
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