Last active
November 10, 2015 15:49
-
-
Save Artem-Schander/8a39a5c797b978f5eb9b to your computer and use it in GitHub Desktop.
Typo3 + Twitter Bootstrap - Checkbox/Radio Button Fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('[data-toggle=buttons] .btn > input[type=hidden]').each(function() { | |
if($(this).attr('name') == $(this).next().attr('name') || $(this).attr('name') + '[]' == $(this).next().attr('name')) | |
$(this).insertBefore($(this).parent().parent()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment