Commit f9835ac9f9629545b0ec73c35e15b1b7205f5ca6
1 parent
cc26248c
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Display block name when moving in box organizer
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
app/helpers/boxes_helper.rb
| @@ -202,8 +202,9 @@ module BoxesHelper | @@ -202,8 +202,9 @@ module BoxesHelper | ||
| 202 | # makes the given block draggable so it can be moved away. | 202 | # makes the given block draggable so it can be moved away. |
| 203 | def block_handle(block) | 203 | def block_handle(block) |
| 204 | return "" unless modifiable?(block) | 204 | return "" unless modifiable?(block) |
| 205 | + icon = "<div><div>#{display_icon(block.class)}</div><span>#{_(block.class.pretty_name)}</span></div>" | ||
| 205 | block_draggable("block-#{block.id}", | 206 | block_draggable("block-#{block.id}", |
| 206 | - :helper => "function() {return cloneDraggableBlock($(this), '#{display_icon(block.class)}')}") | 207 | + :helper => "function() {return cloneDraggableBlock($(this), '#{icon}')}") |
| 207 | end | 208 | end |
| 208 | 209 | ||
| 209 | def block_draggable(element_id, options={}) | 210 | def block_draggable(element_id, options={}) |
public/stylesheets/block-store.css
| @@ -66,7 +66,7 @@ | @@ -66,7 +66,7 @@ | ||
| 66 | margin-right: auto; | 66 | margin-right: auto; |
| 67 | margin-left: auto; | 67 | margin-left: auto; |
| 68 | } | 68 | } |
| 69 | -#block-store-draggables .block-type, #block-store-draggables .block, #block-store-draggables .block-type-icon { | 69 | +#block-store-draggables .block-type, #block-store-draggables .block, #block-store-draggables .block-type-icon, #block-store-draggables .ui-draggable-dragging { |
| 70 | display: inline-block; | 70 | display: inline-block; |
| 71 | height: auto; | 71 | height: auto; |
| 72 | z-index: 100; | 72 | z-index: 100; |