From cfc315a4a63f0e83f360c96a7ad9be39c5bb60fd Mon Sep 17 00:00:00 2001 From: Kai Hermann Date: Mon, 29 Aug 2011 23:10:18 +0200 Subject: [PATCH 1/3] fix url escaping in timeslider --- static/timeslider.html | 1 + 1 file changed, 1 insertion(+) diff --git a/static/timeslider.html b/static/timeslider.html index 4dbf8d939..7fb4bfae7 100644 --- a/static/timeslider.html +++ b/static/timeslider.html @@ -63,6 +63,7 @@ //get the padId out of the url var urlParts= document.location.pathname.split("/"); padId = urlParts[urlParts.length-2]; + padId = unescape(padId); // unescape neccesary due to Safari and Opera interpretation of spaces //set the title document.title = document.title + " | " + padId; From ced79fe867bc062640dfbe4f34089f936bf884fe Mon Sep 17 00:00:00 2001 From: Kai Hermann Date: Tue, 30 Aug 2011 01:51:47 +0200 Subject: [PATCH 2/3] 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 --- static/timeslider.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/timeslider.html b/static/timeslider.html index 7fb4bfae7..4b573206d 100644 --- a/static/timeslider.html +++ b/static/timeslider.html @@ -272,7 +272,7 @@ Return to pad From ae73b1101a54f60d69d338b0eef150a60561f3c9 Mon Sep 17 00:00:00 2001 From: Kai Hermann Date: Tue, 30 Aug 2011 16:47:16 +0200 Subject: [PATCH 3/3] improved handling of document.referrer in timeslider.html: if a referrer with a pad-url is given (/p/*) use this referrer for the Return to pad link, if not use a substring of document.location --- static/timeslider.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/timeslider.html b/static/timeslider.html index 4b573206d..2daead15d 100644 --- a/static/timeslider.html +++ b/static/timeslider.html @@ -272,7 +272,11 @@ Return to pad