]> source.dussan.org Git - redmine.git/commitdiff
Fix sort handle on "My page".
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 11 Mar 2017 13:07:38 +0000 (13:07 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 11 Mar 2017 13:07:38 +0000 (13:07 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16389 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/my_helper.rb
app/views/my/page.html.erb

index d8930c077da6934508acecce133bdd4cc98a57cd..fe29dfafa763e5be463f260d84d120048a01c17b 100644 (file)
@@ -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
 
index 2eb29ad0c7739650e361c4a3566c1084e27baa8a..9fe143516de111150a121bf27971fe403cc7b85f 100644 (file)
@@ -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){