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
@ -695,9 +695,13 @@ function FW_weekprofileBack(widget)
|
|||||||
if (widget.JMPBACK){
|
if (widget.JMPBACK){
|
||||||
var isInIframe = (window.location != window.parent.location) ? true : false;
|
var isInIframe = (window.location != window.parent.location) ? true : false;
|
||||||
if (isInIframe) {
|
if (isInIframe) {
|
||||||
parent.history.back();
|
parent.history.back();
|
||||||
} else
|
} else
|
||||||
window.history.back();
|
if (document.referrer) {
|
||||||
|
window.location.assign(document.referrer)
|
||||||
|
} else {
|
||||||
|
window.history.back() //maybe problems with reload
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
widget.MODE = "SHOW";
|
widget.MODE = "SHOW";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user