Sha256: cea4eb361843c7a9d207ff34dd6b38cfd31f854d2482ef2f2806d2ec27d19912
Contents?: true
Size: 500 Bytes
Versions: 15
Compression:
Stored size: 500 Bytes
Contents
// extracts form data from an existing rails form, and replaces it's own contents with the contents // of data jQuery.fn.addSauceFromForm = function(data) { var formData = $(data).find(".ui-dialog-content").children(); var formToken = $(data).find("input[name='authenticity_token']"); var formMethod = $(data).find("input[name='_method']"); $(data).children().remove(); $(data).append(formData); $(data).append(formToken); $(data).append(formMethod); $(this).append(data); };
Version data entries
15 entries across 15 versions & 1 rubygems