Fix read more position.
This commit is contained in:
parent
c443dddeea
commit
427222df41
|
@ -337,6 +337,10 @@ class AnnouncementsController < ApplicationController
|
||||||
div_clearfix = read_more_block;
|
div_clearfix = read_more_block;
|
||||||
}
|
}
|
||||||
first_element.before(div_clearfix);
|
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{
|
}else{
|
||||||
var div_clearfix = $('<div class=\"clearfix\"></div>');
|
var div_clearfix = $('<div class=\"clearfix\"></div>');
|
||||||
read_more_block.appendTo(div_clearfix);
|
read_more_block.appendTo(div_clearfix);
|
||||||
|
|
Loading…
Reference in New Issue