From 9d66507050e7bf710710b7c1f89e0e3bffe93b33 Mon Sep 17 00:00:00 2001 From: BNoiZe Date: Tue, 15 Oct 2013 15:10:10 +0200 Subject: [PATCH] history.go(-1) fix --- templates/Froxlor/assets/js/main.js | 5 +++++ templates/Froxlor/misc/dberrornice.tpl | 2 +- templates/Sparkle/assets/js/main.js | 5 +++++ templates/Sparkle/misc/dberrornice.tpl | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/templates/Froxlor/assets/js/main.js b/templates/Froxlor/assets/js/main.js index bd2ba156..345fb6ef 100644 --- a/templates/Froxlor/assets/js/main.js +++ b/templates/Froxlor/assets/js/main.js @@ -1,4 +1,9 @@ $(document).ready(function() { + $('#historyback').click(function() { + parent.history.back(); + return false; + }); + // this is necessary for the special setting feature (ref #1010) $.getQueryVariable = function(key) { var urlParams = decodeURI( window.location.search.substring(1) ); diff --git a/templates/Froxlor/misc/dberrornice.tpl b/templates/Froxlor/misc/dberrornice.tpl index 21a9c1c9..72458523 100644 --- a/templates/Froxlor/misc/dberrornice.tpl +++ b/templates/Froxlor/misc/dberrornice.tpl @@ -32,7 +32,7 @@

- Go back + Go back

diff --git a/templates/Sparkle/assets/js/main.js b/templates/Sparkle/assets/js/main.js index a8bd3f97..ff662642 100644 --- a/templates/Sparkle/assets/js/main.js +++ b/templates/Sparkle/assets/js/main.js @@ -19,6 +19,11 @@ $(document).ready(function() { $("html, body").animate({ scrollTop: 0 }, 600); return false; }); + + $('#historyback').click(function() { + parent.history.back(); + return false; + }); // this is necessary for the special setting feature (ref #1010) $.getQueryVariable = function(key) { diff --git a/templates/Sparkle/misc/dberrornice.tpl b/templates/Sparkle/misc/dberrornice.tpl index 454f601a..60cb7038 100644 --- a/templates/Sparkle/misc/dberrornice.tpl +++ b/templates/Sparkle/misc/dberrornice.tpl @@ -35,7 +35,7 @@