mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
loader.js: Drop redundant method cacheLoadedIcons
This commit is contained in:
parent
da513a746d
commit
dda49b5ff1
@ -399,22 +399,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
cacheLoadedIcons: function($container) {
|
|
||||||
// TODO: this is just a prototype, disabled for now
|
|
||||||
return;
|
|
||||||
|
|
||||||
var _this = this;
|
|
||||||
$('img.icon', $container).each(function(idx, img) {
|
|
||||||
var src = $(img).attr('src');
|
|
||||||
if (typeof _this.iconCache[src] !== 'undefined') {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var cache = new Image();
|
|
||||||
cache.src = src
|
|
||||||
_this.iconCache[src] = cache;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle successful XHR response
|
* Handle successful XHR response
|
||||||
*/
|
*/
|
||||||
@ -578,7 +562,6 @@
|
|||||||
if (newBody) {
|
if (newBody) {
|
||||||
this.icinga.ui.fixDebugVisibility().triggerWindowResize();
|
this.icinga.ui.fixDebugVisibility().triggerWindowResize();
|
||||||
}
|
}
|
||||||
_this.cacheLoadedIcons(req.$target);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user