Fix content embedding

there were a few bindonce statements that broke content embedding by removing too many watchers
This commit is contained in:
Lorenz H-S 2013-12-19 23:57:33 +00:00
parent 8f5d06a38a
commit e5f1d9821a

View file

@ -287,13 +287,13 @@ $ openssl req -nodes -newkey rsa:2048 -keyout relay.pem -x509 -days 365 -out rel
<span bindonce ng-repeat="part in bufferline.content" class="text" bo-class="part.classes" bo-html="part.text|linky:'_blank'"></span>
<div bindonce ng-repeat="metadata in bufferline.metadata">
<div bo-show="metadata.visible">
<button class="btn btn-primary pull-right" bo-click="metadata.visible = false" bo-text="'Hide ' + metadata.name">Hide {{ metadata.name }}</button>
<div bo-html="metadata.content"></div>
<div ng-show="metadata.visible">
<button class="btn btn-primary pull-right" ng-click="metadata.visible = false">Hide {{ metadata.name }}</button>
<div ng-bind-html="metadata.content"></div>
</div>
<div bo-hide="metadata.visible">
<button class="btn pull-right" bo-class="{'btn-warning': metadata.nsfw, 'btn-primary': !metadata.nsfw}" ng-click="metadata.visible = true">Show {{ metadata.name }}</button>
<div ng-hide="metadata.visible">
<button class="btn pull-right" ng-class="{'btn-warning': metadata.nsfw, 'btn-primary': !metadata.nsfw}" ng-click="metadata.visible = true">Show {{ metadata.name }}</button>
</div>
</div>
</td>