Add link innerText
This commit is contained in:
1
dist/swagger-ui.js
vendored
1
dist/swagger-ui.js
vendored
@@ -21354,6 +21354,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
|
|||||||
|
|
||||||
a.setAttribute('href', href);
|
a.setAttribute('href', href);
|
||||||
a.setAttribute('download', download);
|
a.setAttribute('download', download);
|
||||||
|
a.innerText = 'Download ' + fileName;
|
||||||
|
|
||||||
pre = $('<div/>').append(a);
|
pre = $('<div/>').append(a);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
2
dist/swagger-ui.min.js
vendored
2
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -618,6 +618,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
|
|||||||
|
|
||||||
a.setAttribute('href', href);
|
a.setAttribute('href', href);
|
||||||
a.setAttribute('download', download);
|
a.setAttribute('download', download);
|
||||||
|
a.innerText = 'Download ' + fileName;
|
||||||
|
|
||||||
pre = $('<div/>').append(a);
|
pre = $('<div/>').append(a);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user