survey/app/views/admin/surveys/index.js.erb

4 lines
416 B
Plaintext

$("#delete_all").attr("action", "<%= delete_admin_surveys_path(:direction => params[:direction], :sort => params[:sort], :filter => @filter, :new_filter => nil, :sort_options => params[:sort_options]) %>");
$("#sort_headers").html("<%= j render 'sort_headers' %>");
$("#tbody_surveys").html("<%= j render :partial => 'survey', :collection => @surveys %>");
$("#survey_pagination").html("<%= j paginate @surveys %>");