Sha256: aa2a825dc0ca86469a016b809a10b47a46286e491f913603010e67ca30fbd35a
Contents?: true
Size: 623 Bytes
Versions: 16
Compression:
Stored size: 623 Bytes
Contents
jQuery(document).ready(function() { jQuery(document).on('ajax:beforeSend', '.batch-create-rows a', function(event, xhr, settings) { var num_records = jQuery(this).closest('.batch-create-rows').find('input[name=num_records]').val(); if (num_records) settings.url += (settings.url.indexOf('?') != -1 ? '&' : '?') + 'num_records=' + num_records; return true; }); jQuery(document).on('click', '.multiple .form_record a.remove', function(event) { event.preventDefault(); var record = jQuery(this).closest('.form_record'); record.prev('.form_record-errors').remove(); record.remove(); }); });
Version data entries
16 entries across 16 versions & 1 rubygems