Ticket #12508: inlines_patch.diff
File inlines_patch.diff, 809 bytes (added by , 15 years ago) |
---|
-
inlines.js
56 56 var template = $("#" + options.prefix + "-empty"); 57 57 var row = template.clone(true).get(0); 58 58 $(row).removeClass(options.emptyCssClass).removeAttr("id").insertBefore($(template)); 59 $(row).html($(row).html().replace(/__prefix__/g, nextIndex));60 $(row).addClass(options.formCssClass).attr("id", options.prefix + nextIndex);59 $(row).html($(row).html().replace(/__prefix__/g, totalForms.val())); 60 $(row).addClass(options.formCssClass).attr("id", options.prefix + totalForms.val()); 61 61 if ($(row).is("TR")) { 62 62 // If the forms are laid out in table rows, insert 63 63 // the remove button into the last table cell: