Solves first part of #377 -- Swap order of title and pad name

pull/390/head
John McLear 2012-01-31 14:15:36 +00:00
parent 9ed42ac801
commit 9d72ddfbc7
2 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ function handshake()
padId = decodeURIComponent(padId); // unescape neccesary due to Safari and Opera interpretation of spaces
if(!isReconnect)
document.title = document.title + " | " + padId.replace(/_+/g, ' ');
document.title = padId.replace(/_+/g, ' ') + " | " + document.title;
var token = readCookie("token");
if (token == null)

View File

@ -73,7 +73,7 @@ function init() {
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");