File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 10
10
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
11
// about supported directives.
12
12
13
- // Need to be on top to allow Poltergeist test to work with React: es5-shim/es5-shim. This is lincluded in app-bundle.
14
- //= require react_on_rails
15
-
16
- // It is important that generated/vendor-bundle must be before bootstrap since it is exposing jQuery and jQuery-ujs
13
+ // CRITICAL that generated/vendor-bundle must be BEFORE bootstrap-sprockets and turbolinks since it is
14
+ // exposing jQuery and jQuery-ujs
17
15
//= require generated/vendor-bundle
18
16
//= require generated/app-bundle
19
17
20
- //= require bootstrap-sprockets
18
+ // Next two depend on jQuery
21
19
//= require turbolinks
20
+ //= require bootstrap-sprockets
21
+
22
+ //= require react_on_rails
22
23
24
+ // TODO: move to this separate file.
23
25
$ ( document ) . on ( 'ready page:load' , function ( ) {
24
26
$ ( 'nav a' ) . parents ( 'li,ul' ) . removeClass ( 'active' ) ;
25
27
$ ( 'nav a[href="' + this . location . pathname + '"]' ) . parents ( 'li,ul' ) . addClass ( 'active' ) ;
You can’t perform that action at this time.
0 commit comments