This commit is contained in:
Zixaphir 2013-12-25 20:35:05 -07:00
parent 3adce28107
commit 2558660e27
3 changed files with 12 additions and 5 deletions

View File

@ -12510,13 +12510,14 @@
});
},
ready: function() {
var banner, child, children, i, title;
var banner, child, children, i, nodes, title;
banner = $(".boardBanner");
title = $.el("div", {
id: "boardTitle"
});
children = banner.children;
nodes = [];
i = 0;
while (child = children[i++]) {
if (i === 1) {
@ -12525,11 +12526,12 @@
$.on(child, 'click', Banner.cb.toggle);
continue;
}
nodes.push(child);
if (Conf['Custom Board Titles']) {
Banner.custom(child).title = "Ctrl+click to edit board " + (i === 3 ? 'sub' : '') + "title";
}
}
$.add(title, [children[1], children[2]]);
$.add(title, nodes);
$.after(banner, title);
},
cb: {

View File

@ -12514,13 +12514,14 @@
});
},
ready: function() {
var banner, child, children, i, title;
var banner, child, children, i, nodes, title;
banner = $(".boardBanner");
title = $.el("div", {
id: "boardTitle"
});
children = banner.children;
nodes = [];
i = 0;
while (child = children[i++]) {
if (i === 1) {
@ -12529,11 +12530,12 @@
$.on(child, 'click', Banner.cb.toggle);
continue;
}
nodes.push(child);
if (Conf['Custom Board Titles']) {
Banner.custom(child).title = "Ctrl+click to edit board " + (i === 3 ? 'sub' : '') + "title";
}
}
$.add(title, [children[1], children[2]]);
$.add(title, nodes);
$.after(banner, title);
},
cb: {

View File

@ -8,6 +8,7 @@ Banner =
title = $.el "div",
id: "boardTitle"
{children} = banner
nodes = []
i = 0
while child = children[i++]
@ -19,13 +20,15 @@ Banner =
continue
nodes.push child
if Conf['Custom Board Titles']
Banner.custom(child).title = "Ctrl+click to edit board #{if i is 3
'sub'
else
''}title"
$.add title, [children[1], children[2]]
$.add title, nodes
$.after banner, title
return