Closed (outdated)
Project:
Webform Add More
Version:
6.x-1.03
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2012 at 08:13 UTC
Updated:
17 Jun 2016 at 13:02 UTC
Jump to comment: Most recent
Comments
Comment #1
matt bWhen pagebreaks are on the form, and you page forward to the page with the fieldsets on it, the
webform_addmore_form_alterfunction (and therefore drupal_add_js) runs twice - I'm not sure why - page forward again and then page backwebform_addmore_form_alteronly runs once.The drupal_add_js function is additive.
Calling drupal_add_js to set the javascript variable for the label text twice turns the javascript label variable from a string to an array. When this is displayed on the button, the array is rendered twice, causing button label text duplication.
I've fixed this in the javascript file by changing this line:
fieldsetRepeater($('.webform-client-form'), '.webform-addmore', Drupal.settings.webform_addmore.label, 1);to
Comment #2
bellesmanieres commented