File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 1010
1111<!-- Scripts that should be loaded in the footer to allow for faster page loads -->
1212<% unless Rails . env . test? %>
13- < script id ="feedback-tag " src ="https://fbm.earthdata.nasa.gov/for/MMT/feedback.js "> </ script >
14- < script type ="text/javascript ">
15- ( function ( ) {
16- var initFeedback = function ( ) {
17- window . feedback . init ( { showIcon : false } ) ;
18- }
19- if ( window . feedback ) {
20- initFeedback ( ) ;
21- }
22- else {
23- document . getElementById ( 'feedback-tag' ) . onload = initFeedback ;
24- }
25- } ) ( ) ;
26- </ script >
13+ < script id ="feedback-tag " src ="https://fbm.earthdata.nasa.gov/for/<%= Rails . configuration . proposal_mode ? 'Draft%20MMT' : ' MMT' %> /feedback.js "> </ script >
14+ < script type ="text/javascript ">
15+ ( function ( ) {
16+ var initFeedback = function ( ) {
17+ window . feedback . init ( { showIcon : false } ) ;
18+ }
19+ if ( window . feedback ) {
20+ initFeedback ( ) ;
21+ }
22+ else {
23+ document . getElementById ( 'feedback-tag' ) . onload = initFeedback ;
24+ }
25+ } ) ( ) ;
26+ </ script >
2727<% end %>
You can’t perform that action at this time.
0 commit comments