From a6711403784c424537b8e7d534307f9398391665 Mon Sep 17 00:00:00 2001 From: Wikinaut Date: Sat, 19 Nov 2011 10:40:57 +0100 Subject: [PATCH] changing layout of page titles. padname, then '| Etherpad' string in the document.title --- static/js/pad2.js | 2 +- static/timeslider.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/pad2.js b/static/js/pad2.js index fca3f6009..c4853c734 100644 --- a/static/js/pad2.js +++ b/static/js/pad2.js @@ -175,7 +175,7 @@ function handshake() var padId = document.location.pathname.substring(document.location.pathname.lastIndexOf("/") + 1); padId = decodeURIComponent(padId); // unescape neccesary due to Safari and Opera interpretation of spaces - document.title = document.title + " | " + padId.replace( /_/g, " " ); + document.title = padId.replace( /_/g, " ") + " | " + document.title; var token = readCookie("token"); if (token == null) diff --git a/static/timeslider.html b/static/timeslider.html index f64cf3cac..fddfb58ef 100644 --- a/static/timeslider.html +++ b/static/timeslider.html @@ -65,7 +65,7 @@ padId = decodeURIComponent(urlParts[urlParts.length-2]); //set the title - document.title = document.title + " | " + padId.replace( /_/g, " "); + document.title = padId.replace( /_/g, " ") + " | " + document.title; //ensure we have a token token = readCookie("token");