mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-27 20:34:52 +00:00
98_weekprofile: fix use document.referrer to jump back
git-svn-id: https://svn.fhem.de/fhem/trunk@16213 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
de59a361eb
commit
c6b5798613
@ -697,7 +697,11 @@ function FW_weekprofileBack(widget)
|
||||
if (isInIframe) {
|
||||
parent.history.back();
|
||||
} else
|
||||
window.history.back();
|
||||
if (document.referrer) {
|
||||
window.location.assign(document.referrer)
|
||||
} else {
|
||||
window.history.back() //maybe problems with reload
|
||||
}
|
||||
}
|
||||
else {
|
||||
widget.MODE = "SHOW";
|
||||
|
Loading…
x
Reference in New Issue
Block a user