app/helpers/redditor/pages_helper.rb in redditor-0.1.5 vs app/helpers/redditor/pages_helper.rb in redditor-0.1.6

- old
+ new

@@ -7,10 +7,10 @@ id = new_object.object_id fields = f.fields_for(association, new_object, child_index: id) do |builder| content_tag(:dd, :id => "#{association.to_s.singularize}_#{id}") do tag(:div, class: "handle") + link_to("Удалить", "javascript:void(0);", onclick: "if (confirm('dfasdsa')) $(this).closest('dd').remove();") + "\s" + - link_to("Обновить", [:admin, @article.page, association], method: "post", class: "update-data", remote: true, data: {disable_with: "Обновляется"}) + "\s" + + link_to("Обновить", [:admin, @article.page, association], method: "post", class: "redditor__update", remote: true, data: {disable_with: "Обновляется"}) + "\s" + render("admin/pages/" + association.to_s.singularize, f: builder) end end button_tag(name, class: "add_fields", type: "button", data: {id: id, fields: fields.gsub("\n", "")})