BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
639c93b4
Commit
639c93b4
authored
Feb 06, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't have Markdown preview fail for long content by using POST rather than GET.
See
https://github.com/gitlabhq/gitlabhq/issues/8611
.
parent
0a9cab4e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
CHANGELOG
CHANGELOG
+1
-0
dropzone_input.js.coffee
app/assets/javascripts/dropzone_input.js.coffee
+1
-1
routes.rb
config/routes.rb
+1
-1
project_routing_spec.rb
spec/routing/project_routing_spec.rb
+2
-2
No files found.
CHANGELOG
View file @
639c93b4
...
@@ -61,6 +61,7 @@ v 7.8.0
...
@@ -61,6 +61,7 @@ v 7.8.0
-
-
- API: Add support for editing an existing project (Mika Mäenpää and Hannes Rosenögger)
- 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
- 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)
- Added support for firing system hooks on group create/destroy and adding/removing users to group (Boyan Tabakov)
...
...
app/assets/javascripts/dropzone_input.js.coffee
View file @
639c93b4
...
@@ -50,7 +50,7 @@ class @DropzoneInput
...
@@ -50,7 +50,7 @@ class @DropzoneInput
preview
.
text
"Nothing to preview."
preview
.
text
"Nothing to preview."
else
else
preview
.
text
"Loading..."
preview
.
text
"Loading..."
$
.
ge
t
(
$
(
this
).
data
(
"url"
),
$
.
pos
t
(
$
(
this
).
data
(
"url"
),
md_text
:
mdText
md_text
:
mdText
).
success
(
previewData
)
->
).
success
(
previewData
)
->
preview
.
html
previewData
preview
.
html
previewData
...
...
config/routes.rb
View file @
639c93b4
...
@@ -209,7 +209,7 @@ Gitlab::Application.routes.draw do
...
@@ -209,7 +209,7 @@ Gitlab::Application.routes.draw do
post
:unarchive
post
:unarchive
post
:upload_image
post
:upload_image
post
:toggle_star
post
:toggle_star
ge
t
:markdown_preview
pos
t
:markdown_preview
get
:autocomplete_sources
get
:autocomplete_sources
end
end
...
...
spec/routing/project_routing_spec.rb
View file @
639c93b4
...
@@ -60,7 +60,7 @@ end
...
@@ -60,7 +60,7 @@ end
# project GET /:id(.:format) projects#show
# project GET /:id(.:format) projects#show
# PUT /:id(.:format) projects#update
# PUT /:id(.:format) projects#update
# DELETE /:id(.:format) projects#destroy
# 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
describe
ProjectsController
,
'routing'
do
it
'to #create'
do
it
'to #create'
do
post
(
'/projects'
).
should
route_to
(
'projects#create'
)
post
(
'/projects'
).
should
route_to
(
'projects#create'
)
...
@@ -91,7 +91,7 @@ describe ProjectsController, 'routing' do
...
@@ -91,7 +91,7 @@ describe ProjectsController, 'routing' do
end
end
it
'to #markdown_preview'
do
it
'to #markdown_preview'
do
ge
t
(
'/gitlab/gitlabhq/markdown_preview'
).
should
(
pos
t
(
'/gitlab/gitlabhq/markdown_preview'
).
should
(
route_to
(
'projects#markdown_preview'
,
id:
'gitlab/gitlabhq'
)
route_to
(
'projects#markdown_preview'
,
id:
'gitlab/gitlabhq'
)
)
)
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