diff options
-rw-r--r-- | app/helpers/application_helper.rb | 2 | ||||
-rw-r--r-- | app/helpers/my_helper.rb | 4 | ||||
-rw-r--r-- | app/views/custom_field_enumerations/index.html.erb | 2 | ||||
-rw-r--r-- | public/stylesheets/application.css | 3 |
4 files changed, 6 insertions, 5 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index afbad6b98..6b4ac3041 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -595,7 +595,7 @@ module ApplicationHelper :reorder_param => options[:param] || object.class.name.underscore } content_tag('span', '', - :class => "sort-handle", + :class => "icon-only icon-sort-handle sort-handle", :data => data, :title => l(:button_sort)) end diff --git a/app/helpers/my_helper.rb b/app/helpers/my_helper.rb index 91b45e677..be6257674 100644 --- a/app/helpers/my_helper.rb +++ b/app/helpers/my_helper.rb @@ -34,10 +34,10 @@ module MyHelper def render_block(block, user) content = render_block_content(block, user) if content.present? - handle = content_tag('span', '', :class => 'sort-handle', :title => l(:button_move)) + handle = content_tag('span', '', :class => 'icon-only icon-sort-handle sort-handle', :title => l(:button_move)) close = link_to(l(:button_delete), {:action => "remove_block", :block => block}, - :remote => true, :method => 'post', + :remote => true, :method => 'post', :class => "icon-only icon-close", :title => l(:button_delete)) content = content_tag('div', handle + close, :class => 'contextual') + content diff --git a/app/views/custom_field_enumerations/index.html.erb b/app/views/custom_field_enumerations/index.html.erb index 915cba2ea..66a0977fd 100644 --- a/app/views/custom_field_enumerations/index.html.erb +++ b/app/views/custom_field_enumerations/index.html.erb @@ -6,7 +6,7 @@ <ul id="custom_field_enumerations" class="flat"> <% @custom_field.enumerations.each_with_index do |value, position| %> <li> - <span class="sort-handle"></span> + <span class="icon-only icon-sort-handle sort-handle"></span> <%= hidden_field_tag "custom_field_enumerations[#{value.id}][position]", position, :class => 'position' %> <%= text_field_tag "custom_field_enumerations[#{value.id}][name]", value.name, :size => 40 %> <%= hidden_field_tag "custom_field_enumerations[#{value.id}][active]", 0 %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 5f8aea732..e9cf8921f 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -1500,6 +1500,7 @@ td.gantt_selected_column .gantt_hdr,.gantt_selected_column_container { .icon-add-bullet { background-image: url(../images/bullet_add.png); } .icon-shared { background-image: url(../images/link.png); } .icon-actions { background-image: url(../images/3_bullets.png); } +.icon-sort-handle { background-image: url(../images/reorder.png); } .icon-bookmark { background-image: url(../images/tag_blue_delete.png); } .icon-bookmark-off { background-image: url(../images/tag_blue_add.png); } @@ -1522,7 +1523,7 @@ td.gantt_selected_column .gantt_hdr,.gantt_selected_column_container { .icon-file.application-zip { background-image: url(../images/files/zip.png); } .icon-file.application-x-gzip { background-image: url(../images/files/zip.png); } -.sort-handle { width:16px; height:16px; background:url(../images/reorder.png) no-repeat 0 50%; cursor:move; } +.sort-handle { cursor:move; } .sort-handle.ajax-loading { background-image: url(../images/loading.gif); } tr.ui-sortable-helper { border:1px solid #e4e4e4; } |