1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-01 08:38:32 +00:00

Chat input is in now, and a ton of other stuff. Why are my commits to trash?

This commit is contained in:
SirStendec 2015-07-06 00:09:21 -04:00
parent 6a62804ec1
commit a7e7f7498d
18 changed files with 1416 additions and 165 deletions

View file

@ -18,11 +18,26 @@ var FFZ = window.FrankerFaceZ,
// --------------------
FFZ.settings_info.minimal_chat = {
FFZ.settings_info.swap_sidebars = {
type: "boolean",
value: false,
//no_bttv: true,
category: "Miscellaneous",
no_bttv: true,
name: "Swap Sidebar Positions",
help: "Swap the positions of the left and right sidebars, placing chat on the left.",
on_update: function(val) {
if ( ! this.has_bttv )
document.body.classList.toggle("ffz-sidebar-swap", val);
}
};
FFZ.settings_info.minimal_chat = {
type: "boolean",
value: false,
category: "Chat",
name: "Minimalistic Chat",
@ -34,6 +49,7 @@ FFZ.settings_info.minimal_chat = {
var f = this;
setTimeout(function() {
f._chatv && f._chatv.$('.chat-room').css('top', f._chatv._ffz_tabs.offsetHeight + "px");
f._roomv && f._roomv.get('stuckToBottom') && f._roomv._scrollToBottom();
},0);
}
}
@ -121,8 +137,11 @@ FFZ.settings_info.pinned_rooms = {
// --------------------
FFZ.prototype.setup_chatview = function() {
//if ( ! this.has_bttv )
document.body.classList.toggle("ffz-minimal-chat", this.settings.minimal_chat);
if ( ! this.has_bttv )
document.body.classList.toggle("ffz-sidebar-swap", this.settings.swap_sidebars);
this.log("Hooking the Ember Chat controller.");
@ -186,7 +205,6 @@ FFZ.prototype.setup_chatview = function() {
}
}
this.log("Hooking the Ember Layout controller.");
var Layout = App.__container__.lookup('controller:layout');
if ( ! Layout )