Make sure if you have a sep but no modifier, you don't append the modifier.
git-svn-id: svn://10.0.0.236/trunk@232603 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
7da3c14e9f
commit
b6550a91f7
@ -355,12 +355,15 @@
|
||||
if (!docTitle)
|
||||
docTitle = this.ownerDocument.documentElement.getAttribute("titledefault");
|
||||
|
||||
var modifier = this.ownerDocument.documentElement.getAttribute("titlemodifier");
|
||||
if (docTitle) {
|
||||
newTitle += this.ownerDocument.documentElement.getAttribute("titlepreface");
|
||||
newTitle += docTitle;
|
||||
newTitle += this.ownerDocument.documentElement.getAttribute("titlemenuseparator");
|
||||
var sep = this.ownerDocument.documentElement.getAttribute("titlemenuseparator");
|
||||
if (modifier)
|
||||
newTitle += sep;
|
||||
}
|
||||
newTitle += this.ownerDocument.documentElement.getAttribute("titlemodifier");
|
||||
newTitle += modifier;
|
||||
window.title = newTitle;
|
||||
]]>
|
||||
</body>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user