fix(torrents): fixed torrent images list issue

This commit is contained in:
OldHawk
2018-01-19 17:10:12 +08:00
parent 8d1f163b29
commit 4f33950cf2
2 changed files with 4 additions and 4 deletions

View File

@@ -43,12 +43,12 @@
//remove
angular.forEach(imgs, function (i) {
if (i.previousSibling && i.previousSibling.tagName.toUpperCase() === 'BR') {
i.previousSibling.remove();
}
if (i.parentElement.childElementCount === 1) {
angular.element(i.parentElement).remove();
} else {
if (i.previousSibling && i.previousSibling.tagName.toUpperCase() === 'BR') {
i.previousSibling.remove();
}
angular.element(i).remove();
}
});

View File

@@ -225,7 +225,7 @@
</div>
</div>
<div class="torrent-info-tabs">
<div class="torrent-info-tabs" ng-if="vm.torrentLocalInfo">
<div class="info-tabs-top">
</div>
<div class="container">