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
846628f1
Commit
846628f1
authored
Oct 08, 2013
by
Takeharu Oshida
Browse files
Match all image types
parent
355380a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/coffeescript/view/OperationView.coffee
View file @
846628f1
...
...
@@ -214,7 +214,7 @@ 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/
png"
)
==
0
or
contentType
.
indexOf
(
"image/jpeg"
)
==
0
or
contentType
.
indexOf
(
"image/gif
"
)
==
0
else
if
contentType
.
indexOf
(
"image/"
)
==
0
pre
=
$
(
'<img>'
).
attr
(
'src'
,
data
.
request
.
url
)
else
# don't know what to render!
...
...
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