Hides additional plugin content by default

This commit is contained in:
David Cormier 2013-08-06 17:07:29 -04:00
parent f9641519f4
commit 89614a33b5
2 changed files with 12 additions and 3 deletions

View File

@ -47,13 +47,21 @@
<span ng-repeat="part in bufferline.message" class="text">
{{ part.text }}
</span>
<div ng-visible="bufferline.metadata">
<div ng-repeat="metadata in bufferline.metadata">
<div ng-bind-html-unsafe="bufferline.metadata"></div>
<div ng-repeat="metadata in bufferline.metadata">
<div ng-show="metadata.visible">
<a ng-click="metadata.visible = false">Hide additional content</a>
<div ng-bind-html-unsafe="metadata.content"></div>
</div>
<div ng-hide="metadata.visible">
<a ng-click="metadata.visible = true">Show additional content</a>
</div>
</div>
</div>
<form ng-submit="sendMessage()">
<input type="text" ng-model="command"></input>

View File

@ -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);
}
}