YesNo Button Render Problem

Ninpo

Member
I am not using Joomla 3.6 yet. I am still 3.51. I noticed that the YesNo color's were not appearing on my sites front end with my RocketTheme template, they were grey regardless of the state. I followed the instructions here, http://fabrikar.com/forums/index.php?wiki/yesno-element/, and it did not change my problem. Upon diving into the source, I noticed that CSS classes,
CSS:
active btn-success
were not being put into the element.

I found the source of my problem in the radiobutton.js file line #39
JavaScript:
c.getElements(".btn-group input[checked=checked]").each(function (input) {

For some reason the code after this statement was not being executed and thus the line that puts the CSS class into the element was not being called. I changed this line to
JavaScript:
c.getElements(".btn-group input[checked]").each(function (input) {
and now it works with my template and with the default templates as well.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top