File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
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
13
// It is important that generated/vendor-bundle must be before bootstrap since it is exposing jQuery and jQuery-ujs
17
14
//= require generated/vendor-bundle
18
15
//= require generated/app-bundle
19
16
17
+ // Must go after the vendor-bundle, b/c vendor-bundle has jQuery.
20
18
//= require bootstrap-sprockets
19
+
21
20
//= require turbolinks
22
21
22
+ //= require react_on_rails
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