Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ihor Kaharlichenko
swagger-ui-oms
Commits
2bddfb68
Commit
2bddfb68
authored
Nov 04, 2013
by
Tony Tam
Browse files
Merge pull request #327 from georgeOsdDev/master
Add image contents type resopnse handler
parents
b7458010
846628f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/coffeescript/view/OperationView.coffee
View file @
2bddfb68
...
...
@@ -214,6 +214,8 @@ class OperationView extends Backbone.View
else
if
contentType
.
indexOf
(
"text/html"
)
==
0
code
=
$
(
'<code />'
).
html
(
content
)
pre
=
$
(
'<pre class="xml" />'
).
append
(
code
)
else
if
contentType
.
indexOf
(
"image/"
)
==
0
pre
=
$
(
'<img>'
).
attr
(
'src'
,
data
.
request
.
url
)
else
# don't know what to render!
code
=
$
(
'<code />'
).
text
(
content
)
...
...
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