history.go(-1) fix

This commit is contained in:
BNoiZe
2013-10-15 15:10:10 +02:00
parent 7bd0fdfa6a
commit 9d66507050
4 changed files with 12 additions and 2 deletions

View File

@@ -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) );

View File

@@ -32,7 +32,7 @@
</div>
</div>
<p class="submit">
<a href="javascript:history.go(-1)" title="Click here to go back">Go back</a>
<a href="#" title="Click here to go back" id="historyback">Go back</a>
</p>
</section>

View File

@@ -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) {

View File

@@ -35,7 +35,7 @@
</div>
</div>
<aside class="right">
<a href="javascript:history.go(-1)" title="Click here to go back">Go back</a>
<a href="#" title="Click here to go back" id="historyback">Go back</a>
</aside>
</section>