mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-23 17:00:24 +01:00
closes #6410
This commit is contained in:
@@ -18,6 +18,7 @@ $(document).ready(function () {
|
||||
// When ajaxify is migrated to a require.js module, then this can be merged into the "define" call
|
||||
require(['translator', 'benchpress'], function (_translator, _Benchpress) {
|
||||
translator = _translator;
|
||||
translator.translate('[[error:no-connection]]', app.inAdmin ? config.acpLang : config.userLang);
|
||||
Benchpress = _Benchpress;
|
||||
});
|
||||
|
||||
@@ -318,6 +319,8 @@ $(document).ready(function () {
|
||||
error: function (data, textStatus) {
|
||||
if (data.status === 0 && textStatus === 'error') {
|
||||
data.status = 500;
|
||||
data.responseJSON = data.responseJSON || {};
|
||||
data.responseJSON.error = '[[error:no-connection]]';
|
||||
}
|
||||
callback({
|
||||
data: data,
|
||||
|
||||
Reference in New Issue
Block a user