Ticket #12508: inlines_patch.diff

File inlines_patch.diff, 809 bytes (added by andraz, 14 years ago)

hope this time the patch gets uploaded

  • inlines.js

     
    5656                                var template = $("#" + options.prefix + "-empty");
    5757                                var row = template.clone(true).get(0);
    5858                                $(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());
    6161                                if ($(row).is("TR")) {
    6262                                        // If the forms are laid out in table rows, insert
    6363                                        // the remove button into the last table cell:
Back to Top