mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-03 20:14:24 +02:00
Revert "js: Don't bypass our cache when reloading CSS"
This reverts commit 1c7e5b31bfaf83517edfbf33abb59cd291a43413. 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…
x
Reference in New Issue
Block a user