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:
@@ -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('&', '&');
|
||||
}, response.REFRESH_DATA.time * 1000);
|
||||
phpbb.avatars.destroy();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user