From 5ec4c823fe8b81bb7a507ad288ed7195371a27fb Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 5 Jul 2016 12:28:37 -0400 Subject: [PATCH] fix css for firefox --- contrib/js/livechan.js | 10 ++++++++-- contrib/static/livechan.css | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/contrib/js/livechan.js b/contrib/js/livechan.js index 0b8601d..45774ad 100644 --- a/contrib/js/livechan.js +++ b/contrib/js/livechan.js @@ -747,9 +747,14 @@ ConvoBar.prototype.show = function(msgid) { break; } } - + var rules = null; // delete all filtering rules - while ( sheet.rules.length > 0 ) { + if (sheet.rules) { + rules = sheet.rules; + } else { + rules = sheet.cssRules; + } + while (rules.length > 0 ) { if (sheet.deleteRule) { sheet.deleteRule(0); } else if (sheet.removeRule) { @@ -758,6 +763,7 @@ ConvoBar.prototype.show = function(msgid) { break; } } + if (msgid === self.active) { // this is resetting the view if (sheet.insertRule) { // firefox diff --git a/contrib/static/livechan.css b/contrib/static/livechan.css index 97f58aa..c477224 100644 --- a/contrib/static/livechan.css +++ b/contrib/static/livechan.css @@ -192,7 +192,8 @@ input, textarea, select { } .livechan_chat_input { - background: #98E; + background: #98E; + padding: 10px; } .livechan_greentext {