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

This commit is contained in:
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 padId = decodeURIComponent(padId); // unescape neccesary due to Safari and Opera interpretation of spaces
if(!isReconnect) if(!isReconnect)
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

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