Askbot is a Django/Python Q&A forum. **Contributors README**: https://github.com/ASKBOT/askbot-devel#how-to-contribute. Commercial hosting of Askbot and support are available at https://askbot.com
Other
1.56k
stars
627
forks
source link
Fix attribute name for active class in init_page.js #941
When adding styles to a sort nav, the active nav element can be selected using .components--sort-nav a[className="js-selected"]. However, it seems the intention is to make a class attribute so that the active element can be selected with .components--sort-nav a.js-selected.
Other notes
I did not investigate any downstream impacts.
Assigning a className attribute also occurs in jinja2/user_profile/user_edit.html. This might also be worth reviewing.
When adding styles to a sort nav, the active nav element can be selected using
.components--sort-nav a[className="js-selected"]
. However, it seems the intention is to make a class attribute so that the active element can be selected with.components--sort-nav a.js-selected
.Other notes
className
attribute also occurs injinja2/user_profile/user_edit.html
. This might also be worth reviewing.