1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-04 15:57:45 +02:00

[ticket/15769] Make basic upload, refresh, and errors work

PHPBB3-15769
This commit is contained in:
Marc Alexander
2021-08-20 16:57:36 +02:00
parent b72379aaab
commit 1933a8ab47
4 changed files with 27 additions and 14 deletions

View File

@@ -165,17 +165,17 @@
return;
}
// trigger_error() was called which likely means a permission error was encountered.
if (typeof response.title !== 'undefined') {
return;
}
// Handle errors while deleting file
if (typeof response.error !== 'undefined') {
phpbb.alert(response.error.title, response.error.message);
}
phpbb.alert(response.error.title, response.error.messages.join('<br>'));
} else {
alert = phpbb.alert(response.MESSAGE_TITLE, response.MESSAGE_TEXT);
phpbb.avatars.destroy();
setTimeout(function() {
window.location = response.REFRESH_DATA.url.replace('&amp;', '&');
}, response.REFRESH_DATA.time * 1000);
phpbb.avatars.destroy();
}
},
/**