change call to retrieve relative_url_root
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
var CodeOceanEditor = {
|
var CodeOceanEditor = {
|
||||||
//ACE-Editor-Path
|
//ACE-Editor-Path
|
||||||
// ruby part adds the relative_url_root, if it is set.
|
// ruby part adds the relative_url_root, if it is set.
|
||||||
ACE_FILES_PATH: '<%= (defined? config.relative_url_root) && config.relative_url_root != nil && config.relative_url_root != "" ? config.relative_url_root : "" %>' + '/assets/ace/',
|
ACE_FILES_PATH: '<%= (defined? Rails.application.config.relative_url_root) && Rails.application.config.relative_url_root != nil && Rails.application.config.relative_url_root != "" ? Rails.application.config.relative_url_root : "" %>' + '/assets/ace/',
|
||||||
THEME: 'ace/theme/textmate',
|
THEME: 'ace/theme/textmate',
|
||||||
|
|
||||||
//Color-Encoding for Percentages in Progress Bars (For submissions)
|
//Color-Encoding for Percentages in Progress Bars (For submissions)
|
||||||
|
Reference in New Issue
Block a user