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


@update_destroy_button = (id) ->
  if id?
    $("#destroy_button").attr("href", app_root() + Routes.osc_job_path(id))
    $("#destroy_button").data("method", "DELETE")
    $("#destroy_button").removeAttr("disabled")
    $("#destroy_button").unbind('click', false)

    show_job_panel()
    $.ajax
      type: 'GET'
      url: ROOT_PATH + Routes.osc_job_path(id)
      contentType: "application/json; charset=utf-8"
      dataType: "json"
      error: (jqXHR, textStatus, errorThrown) ->
