changing layout of page titles. padname, then '| Etherpad' string in the document.title

This commit is contained in:
Wikinaut 2011-11-19 10:40:57 +01:00
parent 0fc72bc7e7
commit a671140378
2 changed files with 2 additions and 2 deletions

View file

@ -175,7 +175,7 @@ function handshake()
var padId = document.location.pathname.substring(document.location.pathname.lastIndexOf("/") + 1); var padId = document.location.pathname.substring(document.location.pathname.lastIndexOf("/") + 1);
padId = decodeURIComponent(padId); // unescape neccesary due to Safari and Opera interpretation of spaces 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"); var token = readCookie("token");
if (token == null) if (token == null)

View file

@ -65,7 +65,7 @@
padId = decodeURIComponent(urlParts[urlParts.length-2]); padId = decodeURIComponent(urlParts[urlParts.length-2]);
//set the title //set the title
document.title = document.title + " | " + padId.replace( /_/g, " "); document.title = padId.replace( /_/g, " ") + " | " + document.title;
//ensure we have a token //ensure we have a token
token = readCookie("token"); token = readCookie("token");