I didn't copy any code from anywhere. The problem started after I upgraded limesurvey to Version 2.00+ Build 130305.
So I figured the problem could be related to a modified template I was using (based on limeinspired), that somehow gets corrupted or becomes incompatible when LS is updated.
So I used the limeinspired template available in Version 2.00+ Build 130305, to create a new version of my template and applied these changes:
www.limesurvey.org/en/forum/design-issue...stion-type-alignment
and my buttons are working now.