소스 검색

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

AntonLV 4 년 전
부모
커밋
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) {
     oSubParent.find('.bx-tl-item-text .bx-tl-content').checkOverflowHeight(this.sSP + '-overflow', function(oElement) {
         $this.onFindOverflow(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)
 BxTimelineView.prototype.initJumpTo = function(oParent)