Sha256: 38d073c3062a01134eea542fceba2ab88ffc2de40396e47f06d0535b23a7f8b8
Contents?: true
Size: 640 Bytes
Versions: 7
Compression:
Stored size: 640 Bytes
Contents
// Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. function add_fields(link, association, content) { var regexp = new RegExp("new_" + association, "g") $('.nested-fields').append(content.replace(regexp)); } function add_success_fields(link, association, content) { var regexp = new RegExp("new_" + association, "g") $('.success-fields').append(content.replace(regexp)); } function add_failure_fields(link, association, content) { var regexp = new RegExp("new_" + association, "g") $('.failure-fields').append(content.replace(regexp)); }
Version data entries
7 entries across 7 versions & 1 rubygems