BigW Consortium Gitlab

Commit 6b61c904 by Dmitriy Zaporozhets

Merge branch 'markdown-preview-via-post' into 'master'

Don't have Markdown preview fail for long comments/wiki pages. See https://github.com/gitlabhq/gitlabhq/issues/8611. See merge request !1479
parents 07715ce5 639c93b4
......@@ -63,6 +63,7 @@ v 7.8.0
-
- API: Add support for editing an existing project (Mika Mäenpää and Hannes Rosenögger)
-
- Don't have Markdown preview fail for long comments/wiki pages.
-
- When test web hook - show error message instead of 500 error page if connection to hook url was reset
- Added support for firing system hooks on group create/destroy and adding/removing users to group (Boyan Tabakov)
......
......@@ -50,7 +50,7 @@ class @DropzoneInput
preview.text "Nothing to preview."
else
preview.text "Loading..."
$.get($(this).data("url"),
$.post($(this).data("url"),
md_text: mdText
).success (previewData) ->
preview.html previewData
......
......@@ -220,7 +220,7 @@ Gitlab::Application.routes.draw do
post :unarchive
post :upload_image
post :toggle_star
get :markdown_preview
post :markdown_preview
get :autocomplete_sources
end
......
......@@ -60,7 +60,7 @@ end
# project GET /:id(.:format) projects#show
# PUT /:id(.:format) projects#update
# DELETE /:id(.:format) projects#destroy
# markdown_preview_project GET /:id/markdown_preview(.:format) projects#markdown_preview
# markdown_preview_project POST /:id/markdown_preview(.:format) projects#markdown_preview
describe ProjectsController, 'routing' do
it 'to #create' do
post('/projects').should route_to('projects#create')
......@@ -91,7 +91,7 @@ describe ProjectsController, 'routing' do
end
it 'to #markdown_preview' do
get('/gitlab/gitlabhq/markdown_preview').should(
post('/gitlab/gitlabhq/markdown_preview').should(
route_to('projects#markdown_preview', id: 'gitlab/gitlabhq')
)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment