Revert "js: Don't bypass our cache when reloading CSS"
This reverts commit 1c7e5b31bf
.
fixes #4417
refs #4340
This commit is contained in:
parent
decf8c0588
commit
54acf35c69
|
@ -112,7 +112,10 @@
|
||||||
if ($oldLink.hasAttr('type') && $oldLink.attr('type').indexOf('css') > -1) {
|
if ($oldLink.hasAttr('type') && $oldLink.attr('type').indexOf('css') > -1) {
|
||||||
var $newLink = $oldLink.clone().attr(
|
var $newLink = $oldLink.clone().attr(
|
||||||
'href',
|
'href',
|
||||||
$(this).attr('href')
|
icinga.utils.addUrlParams(
|
||||||
|
$oldLink.attr('href'),
|
||||||
|
{ id: new Date().getTime() } // Only required for Firefox to reload CSS automatically
|
||||||
|
)
|
||||||
).on('load', function() {
|
).on('load', function() {
|
||||||
$oldLink.remove();
|
$oldLink.remove();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue