Fixed  XenForo.FieldAdder/XenForo.PollAddResponseButton

jmurrayhead

Well-known member
So I've been snooping around XenForo's JavaScript files and noticed that xenforo.js has 'XenForo.FieldAdder', which is supposed to clone form fields, and then in poll.js I see 'XenForo.PollAddResponseButton', which is supposed to perform the same functionality as XenForo.FieldAdder, only for the poll response fields.

I don't see anywhere in the code where FieldAdder would be used. Is there any reason to have two different functions that seem to do the same thing? I would think you would want to keep it more generic (e.g., FieldAdder) rather than area-specific (e.g., PollAddResponseButton).
 

Kier

XenForo developer
Staff member
I remember doing this... I'll look back at the code and let you know why.
 
R

ragtek

Guest
The fieldadder is used in the acp to add the captcha answers;)
 
Top