 
 @update_stop_button = (id, status_char) ->
   if id? && status_char? && (status_char == "R" || status_char == "Q")
-    $("#stop_button").attr("href", joinRoot(Routes.stop_workflow_path(id)))
+    $("#stop_button").attr("href", Routes.stop_workflow_path(id))
     $("#stop_button").data("method", "PUT")
     $("#stop_button").removeAttr("disabled")
     $("#stop_button").unbind('click', false)

@update_template_button = (id) ->
  if id?
    params = { jobid: "#{id}" }
    $("#template_button").attr("href", joinRoot(Routes.new_template_path( params )))
    $("#template_button").removeAttr("disabled")
    $("#template_button").unbind('click', false)
  else


@update_submit_button = (id, status_char) ->
  if id? && !status_char?
      $("#submit_button").attr("href", Routes.submit_workflow_path(id))
      $("#submit_button").data("method", "PUT")
      $("#submit_button").removeAttr("disabled")
      $("#submit_button").unbind('click', false)
