Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

Commit

Permalink
Fix color update label js. Fixes #128.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Groeneveld committed Jan 2, 2015
1 parent 6e0351d commit 3501439
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/labels/update.js.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
jQuery('#label-id-<%= @label.id %>').css('background', '<%= @label.color %>');
jQuery('[data-dropdown="label-<%= @label.id %>"]').closest('a').find('i.fa-square').css('color', '<%= @label.color %>');
jQuery('[data-dropdown="label-<%= @label.id %>"]').closest('a').find('i.fa-circle-o').css('color', '<%= @label.color %>');

<%# close all dropdowns %>
var dropdowns = jQuery('.f-dropdown');
dropdowns.foundation('dropdown', 'close', dropdowns);
dropdowns.foundation('dropdown', 'close', dropdowns);
4 changes: 4 additions & 0 deletions test/controllers/labelings_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,8 @@ class LabelingsControllerTest < ActionController::TestCase
end
end

test 'should show labels in sidebar' do

end

end
4 changes: 4 additions & 0 deletions test/controllers/tickets_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ class TicketsControllerTest < ActionController::TestCase

# should contain this anchor for linking from notification email
assert_select '[id=reply-' + @ticket.replies.first.id.to_s + ']'

# should have this icon for label color update javascript (sidebar)
assert_select 'aside ul li i.fa-circle-o'

end

test 'should email assignee if ticket is assigned by somebody else' do
Expand Down

0 comments on commit 3501439

Please sign in to comment.