mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
0026b55d3a
git-svn-id: https://svn.fhem.de/fhem/trunk@8940 2b470e98-0d58-463d-a4d8-8e2adae1ed80
10 lines
331 B
JavaScript
10 lines
331 B
JavaScript
// reload image with id
|
|
function reloadImage(id) {
|
|
// we use a dummy query to trick the browser into reloading the image
|
|
var d = new Date();
|
|
var q = '?t=' + d.getTime();
|
|
var image = document.getElementById(id);
|
|
var url = image.getAttribute('src');
|
|
image.setAttribute('src', url.replace(/\?.*/,'') + q );
|
|
}
|