Fix URL targets for uploads, markdown preview and autocomplete in MR textareas
This commit is contained in:
parent
ac571623d8
commit
322913f331
|
@ -55,6 +55,7 @@ v 8.0.0 (unreleased)
|
||||||
- Webhook for issue now contains repository field (Jungkook Park)
|
- Webhook for issue now contains repository field (Jungkook Park)
|
||||||
- Add ability to add custom text to the help page (Jeroen van Baarsen)
|
- Add ability to add custom text to the help page (Jeroen van Baarsen)
|
||||||
- Add pg_schema to backup config
|
- Add pg_schema to backup config
|
||||||
|
- Fix references to target project issues in Merge Requests markdown preview and textareas (Francesco Levorato)
|
||||||
|
|
||||||
v 7.14.3
|
v 7.14.3
|
||||||
- No changes
|
- No changes
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
- project = @target_project || @project
|
||||||
:javascript
|
:javascript
|
||||||
GitLab.GfmAutoComplete.dataSource = "#{autocomplete_sources_namespace_project_path(@project.namespace, @project, type: @noteable.class, type_id: params[:id])}"
|
GitLab.GfmAutoComplete.dataSource = "#{autocomplete_sources_namespace_project_path(project.namespace, project, type: @noteable.class, type_id: params[:id])}"
|
||||||
GitLab.GfmAutoComplete.setup();
|
GitLab.GfmAutoComplete.setup();
|
||||||
|
|
|
@ -3,10 +3,11 @@
|
||||||
- sidebar "project" unless sidebar
|
- sidebar "project" unless sidebar
|
||||||
|
|
||||||
- content_for :scripts_body_top do
|
- content_for :scripts_body_top do
|
||||||
|
- project = @target_project || @project
|
||||||
- if current_user
|
- if current_user
|
||||||
:javascript
|
:javascript
|
||||||
window.project_uploads_path = "#{namespace_project_uploads_path @project.namespace, @project}";
|
window.project_uploads_path = "#{namespace_project_uploads_path project.namespace,project}";
|
||||||
window.markdown_preview_path = "#{markdown_preview_namespace_project_path(@project.namespace, @project)}";
|
window.markdown_preview_path = "#{markdown_preview_namespace_project_path(project.namespace, project)}";
|
||||||
|
|
||||||
- content_for :scripts_body do
|
- content_for :scripts_body do
|
||||||
= render "layouts/init_auto_complete" if current_user
|
= render "layouts/init_auto_complete" if current_user
|
||||||
|
|
Loading…
Reference in New Issue