mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-05 21:16:26 -05:00
Style group in PM header
This commit is contained in:
parent
e1040e6529
commit
70e479bb35
|
|
@ -56,7 +56,13 @@
|
|||
var userid = toId(name);
|
||||
var $pmWindow = this.$pmBox.find('.pm-window-'+userid);
|
||||
if (!$pmWindow.length) {
|
||||
var buf = '<div class="pm-window pm-window-'+userid+'" data-userid="'+userid+'"><h3><button class="closebutton" href="'+app.root+'teambuilder"><i class="icon-remove-sign"></i></button>'+Tools.escapeHTML(name)+'</h3><div class="pm-log"><div class="inner"></div></div>';
|
||||
group = name.charAt(0);
|
||||
if (group === ' ') {
|
||||
group = '';
|
||||
} else {
|
||||
group = '<small>'+Tools.escapeHTML(group)+'</small>';
|
||||
}
|
||||
var buf = '<div class="pm-window pm-window-'+userid+'" data-userid="'+userid+'"><h3><button class="closebutton" href="'+app.root+'teambuilder"><i class="icon-remove-sign"></i></button>'+group+Tools.escapeHTML(name.substr(1))+'</h3><div class="pm-log"><div class="inner"></div></div>';
|
||||
buf += '<div class="pm-log-add"><form class="chatbox nolabel"><textarea class="textbox" type="text" size="70" autocomplete="off" name="message"></textarea></form></div></div>';
|
||||
$pmWindow = $(buf).prependTo(this.$pmBox);
|
||||
$pmWindow.find('textarea').autoResize({
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user