You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using rails 4 with turbo links and bootstrap 3.
I've got the touch carousel to work great, problem is that when using turbolinks it just uses a js to replace the body so you're not constantly reloading css and js for everypage.
The issue it creates is that in order for it to work on the next page after clicking the link to open the page, it uses the default bootstrap carousel buttons, until you press the 'next' button then touch carousel kicks in. I'd rather have a method to reload the script. Here's an example of how I can load other scripts with tubrolinks.
I'm using rails 4 with turbo links and bootstrap 3.
I've got the touch carousel to work great, problem is that when using turbolinks it just uses a js to replace the body so you're not constantly reloading css and js for everypage.
The issue it creates is that in order for it to work on the next page after clicking the link to open the page, it uses the default bootstrap carousel buttons, until you press the 'next' button then touch carousel kicks in. I'd rather have a method to reload the script. Here's an example of how I can load other scripts with tubrolinks.
var ready;
ready = function() {
return $(document).on('click', '.edit_task input[type=checkbox]', function() {
return $(this).parent('form').submit();
});
};
$(document).ready(ready);
$(document).on('page:load', ready);
The text was updated successfully, but these errors were encountered: