Comments (6)
+1
from adminlte-rails.
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.
Alternatively, use https://github.com/chukcha-wtf/adminlte and you can keep using turbolinks!
from adminlte-rails.
Thanks bros! @velobuff 's answer is right. Thank you again!
from adminlte-rails.
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.
@velobuff thank you so much bro
from adminlte-rails.
Related Issues (13)
- Update to AdminLTE v2.3.0? HOT 5
- Update Fontawesome
- iCheck/all couldn't find
- How to use this if I am already using bootstrap-sass separately? HOT 6
- Please upgrade do version 2.3
- Removing minimal from Icheck "breaks" it
- How to add timepicker HOT 1
- flash.now does not work?
- Javascript Issues HOT 1
- checkbox background is missing, and its not showing HOT 2
- Not current version of Admin LTE 2. HOT 2
- couldn't find file 'admin-lte' with type 'application/javascript' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adminlte-rails.