File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 192
192
messages = check_completeness ( true ) ;
193
193
if ( messages . length !== 0 ) {
194
194
form_alert ( messages ) ;
195
- $ ( '#btn-submit-co ' ) . prop ( 'disabled' , false ) ;
195
+ $ ( '#btn-gen-textbook ' ) . prop ( 'disabled' , false ) ;
196
196
return ;
197
197
}
198
198
organization_id = $ ( '#organization-select' ) . val ( ) ;
Original file line number Diff line number Diff line change 64
64
- course = Course.find_by(id:offering.course_id)
65
65
- organization = Organization.find_by(id:course.organization_id)
66
66
- term = Term.find_by(id:offering.term_id)
67
- = ENV[" config_api_link" ].gsub(" /api/configure/" ," /Books/#{ organization.slug } /#{ course.slug } /#{ term.slug } /#{ offering.label } /html/index.html" )
67
+ - if ENV[" config_api_link" ] == " staging"
68
+ = " https://opendsax.cs.vt.edu/ODSA/" + " /Books/#{ organization.slug } /#{ course.slug } /#{ term.slug } /#{ offering.label } /html/"
69
+ - else
70
+ = ENV[" config_api_link" ].gsub(" /api/configure/" ," /Books/#{ organization.slug } /#{ course.slug } /#{ term.slug } /#{ offering.label } /html/index.html" )
68
71
%td
69
72
- inst_book = InstBook.find_by(course_offering_id:offering.id)
70
73
- form_name = 'compile_book_' + inst_book.id.to_s
You can’t perform that action at this time.
0 commit comments