This repository was archived by the owner on Mar 1, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ document . addEventListener ( 'turbolinks:load' , function ( ) {
2+ $ . ajaxSetup ( {
3+ beforeSend : function ( xhr ) {
4+ Rails . CSRFProtection ( xhr ) ;
5+ } ,
6+ } ) ;
7+ } ) ;
Original file line number Diff line number Diff line change 77//= require_directory ./lib
88
99function applicationReady ( ) {
10- $ ( " .selectize" ) . selectize ( ) ;
11- $ ( " select[data-bulk-row-edit]" ) . bulkRowEdit ( ) ;
10+ $ ( ' .selectize' ) . selectize ( ) ;
11+ $ ( ' select[data-bulk-row-edit]' ) . bulkRowEdit ( ) ;
1212 $ ( ) . bulkRowSelect ( ) ;
13- $ ( " body" ) . chartkickAutoReload ( ) ;
13+ $ ( ' body' ) . chartkickAutoReload ( ) ;
1414 setupDataTables ( ) ;
1515 setupHighcharts ( ) ;
1616 $ ( '[data-toggle="popover"]' ) . popover ( ) ;
1717 $ ( '[data-message-live-preview="textarea"]' ) . messageLivePreview ( ) ;
1818 setupSimpleMde ( ) ;
1919 setupEmailEvents ( ) ;
2020 setupManageForms ( ) ;
21+
22+ $ . ajaxSetup ( {
23+ beforeSend : function ( xhr ) {
24+ Rails . CSRFProtection ( xhr ) ;
25+ } ,
26+ } ) ;
2127}
2228
23- document . addEventListener ( " turbolinks:load" , applicationReady ) ;
29+ document . addEventListener ( ' turbolinks:load' , applicationReady ) ;
You can’t perform that action at this time.
0 commit comments