Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload with turbolinks in rails. #15

Open
Mediarts opened this issue Mar 3, 2014 · 2 comments
Open

Reload with turbolinks in rails. #15

Mediarts opened this issue Mar 3, 2014 · 2 comments
Labels

Comments

@Mediarts
Copy link

Mediarts commented Mar 3, 2014

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);

@ixisio
Copy link
Owner

ixisio commented Mar 6, 2014

Why a carousel if you are using turbolinks?
Simply take a static img and to simple prev & next buttons...

Here's an example of how I can load other scripts with tubrolinks.

No, this code snipped submits a form on click of a checkbox.

don't understand what you want to achieve!?

@ixisio
Copy link
Owner

ixisio commented Jul 22, 2014

@Mediarts is this issue still relevant?

@ixisio ixisio added the wontfix label Jul 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants