Commit 3c59a9944ac6d0ec8b6df75aa3ddc410f88a8ac7
1 parent
03d5c15c
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Fix block store initialization
Showing
3 changed files
with
9 additions
and
3 deletions
Show diff stats
app/views/box_organizer/index.html.erb
public/javascripts/block-store.js
... | ... | @@ -12,8 +12,8 @@ function stopDragBlock() { |
12 | 12 | $('.ui-draggable-dragging').removeClass('ui-draggable-dragging'); |
13 | 13 | } |
14 | 14 | |
15 | -jQuery(document).ready(function($) { | |
16 | - var store = $('#block-store #block-types').slick({ | |
15 | +function initBlockStore() { | |
16 | + var store = jQuery('#block-store #block-types').slick({ | |
17 | 17 | infinite: true, |
18 | 18 | dots: true, |
19 | 19 | draggable: false, |
... | ... | @@ -37,4 +37,5 @@ jQuery(document).ready(function($) { |
37 | 37 | } |
38 | 38 | ] |
39 | 39 | }); |
40 | -}); | |
40 | + jQuery('#block-store').show(); | |
41 | +} | ... | ... |
public/stylesheets/block-store.css
... | ... | @@ -27,6 +27,9 @@ |
27 | 27 | /************************************************ |
28 | 28 | * block store styles |
29 | 29 | ************************************************/ |
30 | +#block-store { | |
31 | + display: none; | |
32 | +} | |
30 | 33 | #content #block-store .block-type { |
31 | 34 | position: relative; |
32 | 35 | border: 0px solid #AAA; | ... | ... |