socialforge/app/views/issue_categories/create.js.erb

4 lines
297 B
Plaintext
Raw Normal View History

2013-08-01 10:33:49 +08:00
hideModal();
<% select = content_tag('select', content_tag('option') + options_from_collection_for_select(@project.issue_categories, 'id', 'name', @category.id), :id => 'issue_category_id', :name => 'issue[category_id]') %>
$('#issue_category_id').replaceWith('<%= escape_javascript(select) %>');