|
|
@ -455,6 +455,17 @@ MessengerUI, Messages, Pages) {
|
|
|
|
return $container;
|
|
|
|
return $container;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
createCollapse = function (toolbar) {
|
|
|
|
|
|
|
|
var $button = $(h('button', [
|
|
|
|
|
|
|
|
h('i.fa.fa-compress'),
|
|
|
|
|
|
|
|
h('span.cp-button-name', "COLLAPSE"), // XXX
|
|
|
|
|
|
|
|
]));
|
|
|
|
|
|
|
|
toolbar.$bottomR.append($button);
|
|
|
|
|
|
|
|
$button.click(function () {
|
|
|
|
|
|
|
|
toolbar.$top.toggleClass('toolbar-hidden');
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var initChat = function (toolbar) {
|
|
|
|
var initChat = function (toolbar) {
|
|
|
|
var $container = $('<div>', {
|
|
|
|
var $container = $('<div>', {
|
|
|
|
id: 'cp-app-contacts-container',
|
|
|
|
id: 'cp-app-contacts-container',
|
|
|
@ -1334,6 +1345,7 @@ MessengerUI, Messages, Pages) {
|
|
|
|
// Create the subelements
|
|
|
|
// Create the subelements
|
|
|
|
var tb = {};
|
|
|
|
var tb = {};
|
|
|
|
tb['userlist'] = createUserList;
|
|
|
|
tb['userlist'] = createUserList;
|
|
|
|
|
|
|
|
tb['collapse'] = createCollapse; // XXX
|
|
|
|
tb['chat'] = createChat;
|
|
|
|
tb['chat'] = createChat;
|
|
|
|
tb['share'] = createShare;
|
|
|
|
tb['share'] = createShare;
|
|
|
|
tb['access'] = createAccess;
|
|
|
|
tb['access'] = createAccess;
|
|
|
@ -1355,6 +1367,7 @@ MessengerUI, Messages, Pages) {
|
|
|
|
tb['pad'] = function () {
|
|
|
|
tb['pad'] = function () {
|
|
|
|
toolbar.$file.show();
|
|
|
|
toolbar.$file.show();
|
|
|
|
addElement([
|
|
|
|
addElement([
|
|
|
|
|
|
|
|
'collapse', // XXX
|
|
|
|
'chat', 'userlist', 'title', 'useradmin', 'spinner',
|
|
|
|
'chat', 'userlist', 'title', 'useradmin', 'spinner',
|
|
|
|
'newpad', 'share', 'access', 'limit', 'unpinnedWarning',
|
|
|
|
'newpad', 'share', 'access', 'limit', 'unpinnedWarning',
|
|
|
|
'notifications'
|
|
|
|
'notifications'
|
|
|
|