16.06.2020, 06:32
(This post was last modified: 16.06.2020, 06:35 by Erwin van der Zwart.)
Hi,
The changes are made server side and the client (browser) has no clue that that was done, so you always need to refresh..
Here is a custom JS to refresh to browser from server side (needs to be loaded so 1 refresh is needed after adding the JS)
Change 1/1/1 to the same address that triggers the uci update
BR,
Erwin
The changes are made server side and the client (browser) has no clue that that was done, so you always need to refresh..
Here is a custom JS to refresh to browser from server side (needs to be loaded so 1 refresh is needed after adding the JS)
Code:
$(function(){
if (typeof grp != 'undefined') {
grp.listen('1/1/1', function(object, state) {
if (state == 'value') {
location.reload();
}
}, true);
}
});
BR,
Erwin