 
 @update_copy_button = (id) ->
   if id?
-    $("#copy_button").attr("href", joinRoot(Routes.copy_workflow_path(id)))
+    $("#copy_button").attr("href", Routes.copy_workflow_path(id))
     $("#copy_button").data("method", "PUT")
     $("#copy_button").removeAttr("disabled")
     $("#copy_button").unbind('click', false)


@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").data("method", "PUT")
    $("#stop_button").removeAttr("disabled")
    $("#stop_button").unbind('click', false)


@update_edit_button = (id) ->
  if id?
    $("#edit_button").attr("href", Routes.edit_workflow_path(id))
    $("#edit_button").removeAttr("disabled")
    $("#edit_button").unbind('click', false)
  else
