#4388 Fix the toggle button
Merged by pingou. Opened by pingou.
fix_toggle  into  master

Download 4388.patch

We had two issues, the JS function toggle() was in if/else statements
which means it wasn't always included and thus not always working.
The second issue was a missing '.', the line:
checkboxes[i].checked = !checkboxes[i]checked;
was meant to be:
checkboxes[i].checked = !checkboxes[i].checked;

Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

pretty please pagure-ci rebuild

Also, there is missing one semicolon:
span class="btn" onclick="toggle()" should be
span class="btn" onclick="toggle();"
But it is only a detail.

They aren't needed :)

I know, I was just wondering if it doesn't look more "old school"...now I read it's pretty hot topic :)

Would you have a link to share? :)

Oh, nothing in particular, just fast googling :) I was just surprised by the amount of blog posts and heated discussions about such a minor thing :) You're right, better without semicolons.

@lenkaseg does that mean you're :thumbsup: on this PR?

:thumbsup:

Thanks! :)

Pull-Request has been merged by pingou

Metadata