Просмотр исходного кода

Ticket #4010 - Timeline: 'See More' doesn't appear when post consists of a shared link's card.

AntonLV 4 лет назад
Родитель
Сommit
26e9eabd8b
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      modules/boonex/timeline/js/view.js

+ 7 - 0
modules/boonex/timeline/js/view.js

@@ -173,6 +173,13 @@ BxTimelineView.prototype.initSeeMore = function(oParent, bInItems)
     oSubParent.find('.bx-tl-item-text .bx-tl-content').checkOverflowHeight(this.sSP + '-overflow', function(oElement) {
         $this.onFindOverflow(oElement);
     });
+
+    if(oSubParent.find('.bx-tl-item-text .bx-tl-content .bx-embed-link').length != 0)
+        setTimeout(function() {
+            oSubParent.find('.bx-tl-item-text .bx-tl-content:not(.' +  $this.sSP + '-overflow)').has('.bx-embed-link').checkOverflowHeight($this.sSP + '-overflow', function(oElement) {
+                $this.onFindOverflow(oElement);
+            });
+        }, 4000);
 };
 
 BxTimelineView.prototype.initJumpTo = function(oParent)