% if receiver.activity_ties_for?(current_subject) %> <% content_for :javascript do %> securityImage = "<%= escape_javascript(image_tag('btn/btn_security.png', :id => 'security_image', :alt => 'security')) %>"; downImage = "<%= escape_javascript(image_tag('btn/btn_down.png')) %>"; $("#security").dropdownchecklist( { closeRadioOnClick: true } ); $("#security_image").parent().width(28); $("#security_image").parent().parent().width(28); <% end %>