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) {
|
||||
var $newLink = $oldLink.clone().attr(
|
||||
'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() {
|
||||
$oldLink.remove();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue