Commit 7d560b7da48a54ae3212012577c195476007bc6a
1 parent
8ea55342
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Change tolerance method in droppable targets
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/helpers/boxes_helper.rb
... | ... | @@ -193,7 +193,7 @@ module BoxesHelper |
193 | 193 | if block.nil? or modifiable?(block) |
194 | 194 | draggable_id = "encodeURIComponent(jQuery(ui.draggable).attr('id'))" |
195 | 195 | draggable_type = "encodeURIComponent(jQuery(ui.draggable).attr('data-block-type'))" |
196 | - content_tag('div', _('Drop Here'), :id => id, :class => 'block-target' ) + drop_receiving_element(id, :url => { :action => 'move_block', :target => id }, :accept => box.acceptable_blocks, :hoverclass => 'block-target-hover', :with => "'type='+"+draggable_type+"+'&id=' + "+draggable_id, :activeClass => 'block-target-active') | |
196 | + content_tag('div', _('Drop Here'), :id => id, :class => 'block-target' ) + drop_receiving_element(id, :url => { :action => 'move_block', :target => id }, :accept => box.acceptable_blocks, :hoverclass => 'block-target-hover', :with => "'type='+"+draggable_type+"+'&id=' + "+draggable_id, :activeClass => 'block-target-active', :tolerance => 'pointer') | |
197 | 197 | else |
198 | 198 | "" |
199 | 199 | end | ... | ... |