1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-29 22:18:31 +00:00

Fix FFZ's noty-fications not having a visible close button. Fix inverted dev badge.

This commit is contained in:
SirStendec 2016-04-19 15:16:37 -04:00
parent d6b1b215d9
commit 4086a2e9fd
3 changed files with 10 additions and 9 deletions

View file

@ -46,7 +46,6 @@ FFZ.prototype.setup_bttv = function(delay) {
if ( this.is_dashboard ) { if ( this.is_dashboard ) {
this._update_subscribers(); this._update_subscribers();
this._remove_dash_chart(); this._remove_dash_chart();
//this._remove_dash_feed();
} }
document.body.classList.add('ffz-bttv'); document.body.classList.add('ffz-bttv');
@ -61,8 +60,6 @@ FFZ.prototype.setup_bttv = function(delay) {
this._chatv.ffzUnloadHost(); this._chatv.ffzUnloadHost();
} }
this.disconnect_extra_chat();
if ( this._roomv ) { if ( this._roomv ) {
// Disable Chat Pause // Disable Chat Pause
if ( this.settings.chat_hover_pause ) if ( this.settings.chat_hover_pause )
@ -73,6 +70,8 @@ FFZ.prototype.setup_bttv = function(delay) {
this._roomv.ffzUpdateStatus(); this._roomv.ffzUpdateStatus();
} }
this.disconnect_extra_chat();
// Disable style blocks. // Disable style blocks.
this.toggle_style('chat-setup'); this.toggle_style('chat-setup');
this.toggle_style('chat-padding'); this.toggle_style('chat-padding');

View file

@ -4,11 +4,11 @@
/* Invert Some Badges */ /* Invert Some Badges */
body:not(.ffz-dark) .app-main:not(.theatre) .conversation-window .badges .badge:not(.subscriber):not(.ffz-badge-0), body:not(.ffz-dark) .app-main:not(.theatre) .conversation-window .badges .badge:not(.subscriber):not(.ffz-badge-1),
body:not(.ffz-dark) > .chat-container:not(.dark):not(.force-dark) .badges .badge:not(.subscriber):not(.ffz-badge-0), body:not(.ffz-dark) > .chat-container:not(.dark):not(.force-dark) .badges .badge:not(.subscriber):not(.ffz-badge-1),
body:not(.ffz-dark) > .ember-chat-container:not(.dark):not(.force-dark) .badges .badge:not(.subscriber):not(.ffz-badge-0), body:not(.ffz-dark) > .ember-chat-container:not(.dark):not(.force-dark) .badges .badge:not(.subscriber):not(.ffz-badge-1),
.app-main:not(.theatre) .chat-container:not(.dark):not(.force-dark) .badges .badge:not(.subscriber):not(.ffz-badge-0), .app-main:not(.theatre) .chat-container:not(.dark):not(.force-dark) .badges .badge:not(.subscriber):not(.ffz-badge-1),
.app-main:not(.theatre) .ember-chat-container:not(.dark):not(.force-dark) .badges .badge:not(.subscriber):not(.ffz-badge-0) { .app-main:not(.theatre) .ember-chat-container:not(.dark):not(.force-dark) .badges .badge:not(.subscriber):not(.ffz-badge-1) {
filter: invert(100%); filter: invert(100%);
-webkit-filter: invert(100%); -webkit-filter: invert(100%);
} }

View file

@ -1,5 +1,6 @@
var FFZ = window.FrankerFaceZ, var FFZ = window.FrankerFaceZ,
utils = require("../utils"); utils = require("../utils"),
constants = require("../constants");
// --------------------- // ---------------------
@ -193,6 +194,7 @@ FFZ.prototype.show_message = function(message) {
window.noty({ window.noty({
text: message, text: message,
template: '<div class="noty_message"><span class="noty_text"></span><div class="noty_close">' + constants.CLOSE + '</div></div>',
theme: "ffzTheme", theme: "ffzTheme",
layout: "bottomCenter", layout: "bottomCenter",
closeWith: ["button"] closeWith: ["button"]