Giter VIP home page Giter VIP logo

Comments (6)

gcheema avatar gcheema commented on July 17, 2024

+1

from adminlte-rails.

velobuff avatar velobuff commented on July 17, 2024

It's probably Turbolinks and the $(document).ready() event not firing since subsequent full page loads aren't happening on <a> clicks. Remove the turbolinks gem from your Rails app by removing the gem in Gemfile, remove the 2 references in the head in layouts/application.html.erb and remove the reference to it in app/assets/javascripts/application.js

from adminlte-rails.

anthonyalberto avatar anthonyalberto commented on July 17, 2024

Alternatively, use https://github.com/chukcha-wtf/adminlte and you can keep using turbolinks!

from adminlte-rails.

quangtt avatar quangtt commented on July 17, 2024

Thanks bros! @velobuff 's answer is right. Thank you again!

from adminlte-rails.

imaginationcoder avatar imaginationcoder commented on July 17, 2024

its due to turbolinks
Below is the code for fix.

   $(document).ready(function() {
        $.AdminLTE.layout.activate();
    });

   $(document).on('page:load', function() {
       var o;
       o = $.AdminLTE.options;
       if (o.sidebarPushMenu) {
           $.AdminLTE.pushMenu.activate(o.sidebarToggleSelector);
       }
       $.AdminLTE.layout.activate();
    }); 

from adminlte-rails.

theshashiverma avatar theshashiverma commented on July 17, 2024

@velobuff thank you so much bro

from adminlte-rails.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.