Hides additional plugin content by default
This commit is contained in:
parent
f9641519f4
commit
89614a33b5
14
index.html
14
index.html
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue