Sha256: f4abfb37928e153698549f6890060302bd1e3c3819b569482fc62a7381608081
Contents?: true
Size: 448 Bytes
Versions: 9
Compression:
Stored size: 448 Bytes
Contents
$(function () { // change the action based which collection is selected $('input.updates-collection').on('click', function() { var form = $(this).closest("form"); var collection_id = $(".collection-selector:checked")[0].value; form[0].action = form[0].action.replace("collection_replace_id",collection_id); form.append('<input type="hidden" value="add" name="collection[members]"></input>'); }); });
Version data entries
9 entries across 9 versions & 1 rubygems