Question

I'm using this library called Sidr to create sidebars. I have included all the jQuery and CSS needed, infact it's working, BUT I have to double click instead of 1 Click to actually open the side bar.

This is the code, literally I want to implement this example, but it takes two clicks to work:

<a id="left-menu" href="#left-menu">Left Menu</a>
<a id="right-menu" href="#right-menu">Right Menu</a>
<script>
$(document).ready(function() {
$('#left-menu').sidr({
name: 'sidr-left',
side: 'left' // By default
});
$('#right-menu').sidr({
name: 'sidr-right',
side: 'right'
});
});
</script>

When I take out the turboLinks, it works, but I really need the TurboLinks as well.

Any suggestion or work around ?

Was it helpful?

Solution

The Sidr library had a conflict with Turbolinks on Rails 3.2 .

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top