Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
70c3b984
Commit
70c3b984
authored
Jan 29, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ace editor modules to include asset digest in production
parent
572fb0be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
app/assets/javascripts/lib/ace/ace_config_paths.js.erb
app/assets/javascripts/lib/ace/ace_config_paths.js.erb
+4
-2
No files found.
app/assets/javascripts/lib/ace/ace_config_paths.js.erb
View file @
70c3b984
...
@@ -15,11 +15,13 @@ end
...
@@ -15,11 +15,13 @@ end
// configure paths for all worker modules
// configure paths for all worker modules
<%
ace_workers
.
each
do
|
worker
|
%>
<%
ace_workers
.
each
do
|
worker
|
%>
ace.config.setModuleUrl('ace/mode/
<%=
worker
%>
_worker', basePath + '/worker-
<%=
worker
%>
.js');
<%
filename
=
File
.
basename
(
asset_path
(
"ace/worker-
#{
worker
}
.js"
))
%>
ace.config.setModuleUrl('ace/mode/
<%=
worker
%>
_worker', basePath + '/
<%=
filename
%>
');
<%
end
%>
<%
end
%>
// configure paths for all mode modules
// configure paths for all mode modules
<%
ace_modes
.
each
do
|
mode
|
%>
<%
ace_modes
.
each
do
|
mode
|
%>
ace.config.setModuleUrl('ace/mode/
<%=
mode
%>
', basePath + '/mode-
<%=
mode
%>
.js');
<%
filename
=
File
.
basename
(
asset_path
(
"ace/mode-
#{
mode
}
.js"
))
%>
ace.config.setModuleUrl('ace/mode/
<%=
mode
%>
', basePath + '/
<%=
filename
%>
');
<%
end
%>
<%
end
%>
})();
})();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment