mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: error toast on lost connection
This commit is contained in:
@@ -477,7 +477,8 @@ ajaxify.widgets = { render: render };
|
||||
translator.translate(`[[global:reconnecting-message, ${config.siteTitle}]]`);
|
||||
Benchpress.registerLoader(ajaxify.loadTemplate);
|
||||
Benchpress.setGlobal('config', config);
|
||||
Benchpress.render('500', {}); // loads and caches the 500.tpl
|
||||
Benchpress.render('500', {}); // loads and caches 500.tpl
|
||||
Benchpress.render('partials/toast'); // loads and caches partials/toast
|
||||
});
|
||||
}());
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ define('forum/infinitescroll', ['hooks', 'alerts'], function (hooks, alerts) {
|
||||
});
|
||||
}).fail(function (jqXHR) {
|
||||
loadingMore = false;
|
||||
alerts.error(String(jqXHR.responseJSON || jqXHR.statusText));
|
||||
alerts.error(String(jqXHR.responseJSON || '[[error:no-connection]]'));
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user