Sha256: 6f1d887113a6365518f13fa66a9699a73cc35ec5fbbb4f92b2b6fa7df176bbeb
Contents?: true
Size: 502 Bytes
Versions: 27
Compression:
Stored size: 502 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
27 entries across 27 versions & 1 rubygems