mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Solves first part of #377 -- Swap order of title and pad name
This commit is contained in:
parent
9ed42ac801
commit
9d72ddfbc7
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue