Fix read more position.

This commit is contained in:
BoHung Chiu 2021-08-05 11:49:35 +08:00
parent c443dddeea
commit 427222df41
1 changed files with 4 additions and 0 deletions

View File

@ -337,6 +337,10 @@ class AnnouncementsController < ApplicationController
div_clearfix = read_more_block;
}
first_element.before(div_clearfix);
var annc_title = $(\"[data-subpart-id=\\\"#{subpart.id}\\\"] .w-annc__widget-title\").eq(0);
if(annc_title.length != 0){
read_more_block.appendTo(\"[data-subpart-id=\\\"#{subpart.id}\\\"] .w-annc__widget-title:eq(0)\");
}
}else{
var div_clearfix = $('<div class=\"clearfix\"></div>');
read_more_block.appendTo(div_clearfix);