don't use document.referrer to return to the pad from the timeslider, this breaks if you reload the page. better: use a substring of document.location.href

This commit is contained in:
Kai Hermann 2011-08-30 01:51:47 +02:00
parent cfc315a4a6
commit ced79fe867

View file

@ -272,7 +272,7 @@
<!-- termporary place holder-->
<a id = "returnbutton">Return to pad</a>
<script>
$("#returnbutton").attr("href", document.referrer);
$("#returnbutton").attr("href", document.location.href.substring(0,document.location.href.lastIndexOf("/")));
</script>
</div>