From b91489ce6bb0943cff50946af6e64be65d3ccd80 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 11 Mar 2017 13:07:38 +0000 Subject: Fix sort handle on "My page". git-svn-id: http://svn.redmine.org/redmine/trunk@16389 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/my_helper.rb | 2 +- app/views/my/page.html.erb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'app') 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){ -- cgit v1.2.3