From 4b173932e568a3cdad711a14e2960f7ba674a09b Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Wed, 7 Mar 2012 16:44:42 +0600 Subject: [PATCH] [refs #194] fix managing issue executor --- app/assets/javascripts/extra/tracker.js | 5 +++-- app/views/issues/_manage_sidebar.html.haml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/extra/tracker.js b/app/assets/javascripts/extra/tracker.js index 735f9998f..4950086fe 100644 --- a/app/assets/javascripts/extra/tracker.js +++ b/app/assets/javascripts/extra/tracker.js @@ -171,7 +171,7 @@ $(document).ready(function() { var clone = $(this).clone(); form_new.find('#flag-span').fadeOut(0); form_new.find('#issue_labels').append(clone); - var labels = $('#active_labels'); + var labels = $('.current_labels'); labels.find('#'+$(this).attr('id')).remove(); labels.append(clone); }); @@ -243,7 +243,7 @@ $(document).ready(function() { $('.button.manage_executor').live('click', function() { $('form#search_user, .button.update_executor').fadeIn(0); - $('.current_executor .people').addClass('remove_executor selected'); + $('.current_executor .people').addClass('remove_executor selected').removeClass('nopointer'); $(this).fadeOut(0); }); @@ -259,6 +259,7 @@ $(document).ready(function() { url: form.attr("action"), data: form.serialize(), success: function(data){ + $('.current_executor .people').removeClass('remove_executor selected').addClass('nopointer'); $('form#search_user, .button.update_executor').fadeOut(0); $('.button.manage_executor').fadeIn(0); $('#manage_issue_users_list').html(''); diff --git a/app/views/issues/_manage_sidebar.html.haml b/app/views/issues/_manage_sidebar.html.haml index f417de58b..2968931c8 100644 --- a/app/views/issues/_manage_sidebar.html.haml +++ b/app/views/issues/_manage_sidebar.html.haml @@ -16,7 +16,7 @@ =form_for :issue, :url => [@project, @issue], :method => :put, :html => { :class => 'edit_executor issue'} do |f| .current_executor - if @issue.user - #user-0.people + #user-0.people.nopointer .avatar=image_tag avatar_url(@issue.user), :alt => 'avatar' .name="#{@issue.user.uname} (#{@issue.user.name})" =hidden_field_tag "user-0", @issue.user.id, :name => 'issue[user_id]'