diff --git a/app/views/common/forms/_feature_import.html.erb b/app/views/common/forms/_feature_import.html.erb index 8efeab76..291f2f69 100644 --- a/app/views/common/forms/_feature_import.html.erb +++ b/app/views/common/forms/_feature_import.html.erb @@ -1,5 +1,5 @@

Feature: <%=h file[:file].sub(/\.feature/,"").gsub(/_/,' ') %>

-<%- form_for file[:feature], :id => "new_feature",:class => "new_feature hidden", :method => :post do |f|%> +<%- form_for file[:feature], :html => {:id => "new_feature",:class => "new_feature hidden", :method => :post} do |f|%>  
<%= hidden_field_tag :commit, 'Import' %> <%= hidden_field_tag :current_project_id, current_project.id %> diff --git a/app/views/features/import.rjs.erb b/app/views/features/import.rjs.erb index dc2eca8a..db70f755 100644 --- a/app/views/features/import.rjs.erb +++ b/app/views/features/import.rjs.erb @@ -1,2 +1,10 @@ +var accOpts = { + event: "click", + autoHeight: false, + fillSpace: false, + navigation: true +} $('div#wrapper').html("<%= escape_javascript(render :partial => '/common/project_import', :locals => {:current_project => @current_project}) %>"); -$('#content').renderFlashMessage({flashMessage:"<%=escape_javascript(flash.delete(:notice)) %>"}); \ No newline at end of file +$('#content-wide').renderFlashMessage({flashMessage:"<%=escape_javascript(flash.delete(:notice)) %>"}); +$('#myTabs').tabs(); +$('ul.accordion').accordion(accOpts); \ No newline at end of file