summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-03-11 13:07:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-03-11 13:07:38 +0000
commitb91489ce6bb0943cff50946af6e64be65d3ccd80 (patch)
tree7f8771fdd5605d707b74c14289211cc72243a14b /app
parent373b3c283f48913db38f54166e1befd98e3af2de (diff)
downloadredmine-b91489ce6bb0943cff50946af6e64be65d3ccd80.tar.gz
redmine-b91489ce6bb0943cff50946af6e64be65d3ccd80.zip
Fix sort handle on "My page".
git-svn-id: http://svn.redmine.org/redmine/trunk@16389 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/helpers/my_helper.rb2
-rw-r--r--app/views/my/page.html.erb1
2 files changed, 2 insertions, 1 deletions
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){