adminlte2-rails icon indicating copy to clipboard operation
adminlte2-rails copied to clipboard

app.js not compatible with turbolinks

Open esergion opened this issue 9 years ago • 9 comments

All of AdminLTE functions from app.js will work only on page refresh because off turbolinks gem. It's possible to use jquery.turbolinks gem to fix that, but I think for future needs it should work out of box

esergion avatar Jun 29 '15 06:06 esergion

I never had this issue before... I'll try to have a look this week :)

nicolas-besnard avatar Jun 29 '15 07:06 nicolas-besnard

Hi @nicolas-besnard This issue causes me a lot of headaches. My problem was with the bootstrap dropdowns did not want to opened. I had to remove TurboLink for all work well.

calrrox avatar Nov 11 '15 16:11 calrrox

@calrrox That's really odd. I use this gem in 2 apps in production, I didn't have any issue (maybe I'm not using Bootstrap's dropdowns...)

Anyway, it's always good to remove Turbolink: I didn't like it.

nicolas-besnard avatar Nov 16 '15 14:11 nicolas-besnard

I had to patch app.js to work with turbolinks, also Javascript import is to be moved to head patch

tachyons avatar Mar 01 '16 04:03 tachyons

When I moved the javascript to head, the navs (in cogs) stop working, So I decided to remove turbolinks too

AndreLZGava avatar Mar 01 '16 11:03 AndreLZGava

@tachyons I'm thinking this is the issue that I'm having #13. Can you provide the steps that you did to correct your issue?

I'm having to refresh the page as well in order for the account drop-down to work. I removed the turbolinks gem but I'm still having the issue.

mt-davis avatar May 08 '16 01:05 mt-davis

@mt-davis : Try my fork to check whether my approach is working for you https://github.com/tachyons/adminlte2-rails

tachyons avatar May 08 '16 01:05 tachyons

I was just thinking I would try that. I'll give an update if that works. 

mt-davis avatar May 08 '16 01:05 mt-davis

@tachyons I just wanted to give you an update to let you know that your solution worked. Thanks.

mt-davis avatar Jun 01 '16 18:06 mt-davis