Fix bug.
This commit is contained in:
parent
92cd6b809e
commit
8190d52131
|
@ -615,7 +615,7 @@ class AnnouncementsController < ApplicationController
|
||||||
"pause_btn_title" => pause_btn_title,
|
"pause_btn_title" => pause_btn_title,
|
||||||
"prev_btn_title" => prev_btn_title,
|
"prev_btn_title" => prev_btn_title,
|
||||||
"next_btn_title" => next_btn_title,
|
"next_btn_title" => next_btn_title,
|
||||||
"carousel_display_style" => (bulletin_carousel_images.count == 0 ? 'display: none' : ''),
|
"carousel_display_style" => (bulletin_carousel_images.count == 0 ? 'display: none' : 'width: 50%;margin: auto;'),
|
||||||
"carousel_count" => bulletin_carousel_images.count
|
"carousel_count" => bulletin_carousel_images.count
|
||||||
},
|
},
|
||||||
"comments" => announcement.comments,
|
"comments" => announcement.comments,
|
||||||
|
|
Loading…
Reference in New Issue