:plain tr = $("tr#repo_#{@repo_id}") target_field = tr.find(".import-target") import_button = tr.find(".btn-import") origin_target = target_field.text() project_name = "#{@project_name}" origin_namespace = "#{@target_namespace.path}" target_field.empty() target_field.append("
This namespace has already been taken! Please choose another one.
") target_field.append("") target_field.append("/" + project_name) target_field.data("project_name", project_name) target_field.find('input').prop("value", origin_namespace) import_button.enable().removeClass('is-loading')