From 427222df41104bbcf736062640e9f11b9ba4840c Mon Sep 17 00:00:00 2001 From: Bohung Date: Thu, 5 Aug 2021 11:49:35 +0800 Subject: [PATCH] Fix read more position. --- app/controllers/announcements_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/announcements_controller.rb b/app/controllers/announcements_controller.rb index ec05778..02a2488 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -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 = $('
'); read_more_block.appendTo(div_clearfix);