diff --git a/app/helpers/my_helper.rb b/app/helpers/my_helper.rb index d8930c077..fe29dfafa 100644 --- a/app/helpers/my_helper.rb +++ b/app/helpers/my_helper.rb @@ -26,7 +26,7 @@ module MyHelper blocks.each do |block| content = render_block_content(block, user) if content.present? - handle = content_tag('span', '', :class => 'hanlde sort-handle') + handle = content_tag('span', '', :class => 'sort-handle') close = link_to(l(:button_delete), {:action => "remove_block", :block => block}, :method => 'post', :class => "icon-only icon-close") content = content_tag('div', handle + close, :class => 'contextual') + content diff --git a/app/views/my/page.html.erb b/app/views/my/page.html.erb index 2eb29ad0c..9fe143516 100644 --- a/app/views/my/page.html.erb +++ b/app/views/my/page.html.erb @@ -28,6 +28,7 @@ $(document).ready(function(){ $('#list-top, #list-left, #list-right').sortable({ connectWith: '.block-receiver', tolerance: 'pointer', + handle: '.sort-handle', start: function(event, ui){$(this).parent().addClass('dragging');}, stop: function(event, ui){$(this).parent().removeClass('dragging');}, update: function(event, ui){