refactoring project team members controller (corresponding mental model)

This commit is contained in:
Andrey Kumanyaev 2013-01-22 21:20:39 +04:00 committed by Dmitriy Zaporozhets
parent ccf8fa4fa2
commit f6f414ce3b
8 changed files with 45 additions and 40 deletions

View file

@ -1,6 +1,6 @@
- if @team_member.valid?
- if @user_project_relation.valid?
:plain
$("##{dom_id(@team_member)}").effect("highlight", {color: "#529214"}, 1000);;
$("##{dom_id(@user_project_relation)}").effect("highlight", {color: "#529214"}, 1000);;
- else
:plain
$("##{dom_id(@team_member)}").effect("highlight", {color: "#D12F19"}, 1000);;
$("##{dom_id(@user_project_relation)}").effect("highlight", {color: "#D12F19"}, 1000);;