From 89614a33b55aac1038c6697b427f8e2945187840 Mon Sep 17 00:00:00 2001 From: David Cormier Date: Tue, 6 Aug 2013 17:07:29 -0400 Subject: [PATCH] Hides additional plugin content by default --- index.html | 14 +++++++++++--- js/websockets.js | 1 + 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 00961ab..71dcbce 100644 --- a/index.html +++ b/index.html @@ -47,13 +47,21 @@ {{ part.text }} -
-
-
+ +
+
+ Hide additional content +
+
+
+ Show additional content +
+
+
diff --git a/js/websockets.js b/js/websockets.js index d10c466..2acd306 100644 --- a/js/websockets.js +++ b/js/websockets.js @@ -116,6 +116,7 @@ weechat.factory('pluginManager', ['youtubePlugin', function(youtubePlugin) { for (var i = 0; i < plugins.length; i++) { var pluginContent = plugins[i].contentForMessage(message); if (pluginContent) { + var pluginContent = {'visible': false, 'content': pluginContent } content.push(pluginContent); } }