Permalink
Browse files

Fixed routing issue for render_test_result and in _test_selector

  • Loading branch information...
1 parent 98079ad commit 2fa7a59a5aa2d07eb194b01dba38e58441efe747 Bertrand committed Nov 17, 2011
@@ -4,7 +4,7 @@
function load_test_result(test_result_id) {
$('loading_test_result').show();
$('select_test_result_id').disable();
- window.open('<%= url_for({:controller => "results", :action => "render_test_result", :id => @assignment.id})%>?test_result_id='+test_result_id,
+ window.open('<%= url_for({:controller => "results", :action => "render_test_result", :assignment_id => @assignment.id, :id => test_result_id})
"Test Results", "width=400,height=250,resizable=yes,scrollbars=yes")
$('loading_test_result').hide();
$('select_test_result_id').enable();
@@ -3,7 +3,7 @@
%>
<%=label_tag "select_test_result_id", h(I18n.t("common.test_results")), :class => "inline_label" %>
<%= link_to_remote( image_tag("icons/cog_go.png", :alt => I18n.t("common.test_code"), :title => I18n.t("common.test_code"), :id => "test_icon"),
-{:url => {:action => "index", :controller => "automated_tests", :result => @result},
+{:url => {:action => "index", :controller => "automated_tests", :assignment_id => @assignment.id,:result => @result},
:before => "$('running_tests').show();",
:complete => "$('running_tests').hide();$('tests_complete').show()"}) %>
<select id="select_test_result_id" onchange="if ($(this).getValue() != '') { load_test_result($(this).getValue()); }">

0 comments on commit 2fa7a59

Please sign in to comment.