% if can? :create, new_activity(receiver) %> <% 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, forceMultiple: false } ); $("#security_image").parent().width(28); $("#security_image").parent().parent().width(28); <% end %>