Commit f9835ac9f9629545b0ec73c35e15b1b7205f5ca6
1 parent
cc26248c
Exists in
staging
and in
7 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 | 202 | # makes the given block draggable so it can be moved away. |
203 | 203 | def block_handle(block) |
204 | 204 | return "" unless modifiable?(block) |
205 | + icon = "<div><div>#{display_icon(block.class)}</div><span>#{_(block.class.pretty_name)}</span></div>" | |
205 | 206 | block_draggable("block-#{block.id}", |
206 | - :helper => "function() {return cloneDraggableBlock($(this), '#{display_icon(block.class)}')}") | |
207 | + :helper => "function() {return cloneDraggableBlock($(this), '#{icon}')}") | |
207 | 208 | end |
208 | 209 | |
209 | 210 | def block_draggable(element_id, options={}) | ... | ... |
public/stylesheets/block-store.css
... | ... | @@ -66,7 +66,7 @@ |
66 | 66 | margin-right: auto; |
67 | 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 | 70 | display: inline-block; |
71 | 71 | height: auto; |
72 | 72 | z-index: 100; | ... | ... |