mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 20:41:17 +01:00
#2153 prevent jquery from attempting to load images that don't exist
This commit is contained in:
@@ -9,6 +9,7 @@ define('forum/admin/footer', ['forum/admin/settings'], function(Settings) {
|
||||
acpIndex = data;
|
||||
for (var file in acpIndex) {
|
||||
if (acpIndex.hasOwnProperty(file)) {
|
||||
acpIndex[file] = acpIndex[file].replace(/<img/g, '<none'); // can't think of a better solution, see #2153
|
||||
acpIndex[file] = $('<div class="search-container">' + acpIndex[file] + '</div>');
|
||||
acpIndex[file].find('ul.nav, script').remove();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user