I'm having some strange issues with a lot of the Flat-UI-Pro components under Rails. All work perfectly in the demo view, under views/flatuipro_demo/index, but copying that same code into any other view results in problems.
The checkboxes, for example, appear to render twice on top of themselves, which makes it appear that the checkbox isn't working. The one on the bottom changes, but the one on top does not. I think, anyway.
<label class="checkbox">
<input type="checkbox" data-toggle="checkbox" >
Set date/time
</label>
<script>
$(':checkbox').radiocheck()
//^ am I referencing this properly?
</script>
If I delete the first span.icons inside Chrome, the checkbox works fine. I'm not sure how this translates to the actual source though. What could be causing the HTML to render twice, and what can I do?
Aucun commentaire:
Enregistrer un commentaire