merged, removed preventDefault
This commit is contained in:
2
dist/swagger-ui.js
vendored
2
dist/swagger-ui.js
vendored
@@ -347,7 +347,7 @@ this["Handlebars"]["templates"]["main"] = Handlebars.template({"1":function(dept
|
||||
+ "</a></div>";
|
||||
},"10":function(depth0,helpers,partials,data) {
|
||||
var stack1, lambda=this.lambda, escapeExpression=this.escapeExpression;
|
||||
return "<div class='info_email'><a href=\"mailto:"
|
||||
return "<div class='info_email'><a target=\"_parent\" href=\"mailto:"
|
||||
+ escapeExpression(lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.info : depth0)) != null ? stack1.contact : stack1)) != null ? stack1.email : stack1), depth0))
|
||||
+ "?subject="
|
||||
+ escapeExpression(lambda(((stack1 = (depth0 != null ? depth0.info : depth0)) != null ? stack1.title : stack1), depth0))
|
||||
|
||||
14
dist/swagger-ui.min.js
vendored
14
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -82,7 +82,7 @@
|
||||
.swagger-section pre .vhdl .attribute,
|
||||
.swagger-section pre .clojure .attribute,
|
||||
.swagger-section pre .coffeescript .property {
|
||||
color: #8888ff;
|
||||
color: #88F;
|
||||
}
|
||||
.swagger-section pre .keyword,
|
||||
.swagger-section pre .id,
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
.swagger-section pre .vhdl .attribute,
|
||||
.swagger-section pre .clojure .attribute,
|
||||
.swagger-section pre .coffeescript .property {
|
||||
color: #8888ff;
|
||||
color: #88F;
|
||||
}
|
||||
.swagger-section pre .keyword,
|
||||
.swagger-section pre .id,
|
||||
|
||||
@@ -768,6 +768,9 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
|
||||
},
|
||||
|
||||
toggleOperationContent: function (event) {
|
||||
if (event) {
|
||||
event.preventDefault();
|
||||
}
|
||||
var elem = $('#' + Docs.escapeResourceName(this.parentId + '_' + this.nickname + '_content'));
|
||||
if (elem.is(':visible')){
|
||||
$.bbq.pushState('#/', 2);
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
{{#if info.termsOfServiceUrl}}<div class="info_tos"><a href="{{info.termsOfServiceUrl}}" data-sw-translate>Terms of service</a></div>{{/if}}
|
||||
{{#if info.contact.name}}<div class='info_name' data-sw-translate>Created by {{info.contact.name}}</div>{{/if}}
|
||||
{{#if info.contact.url}}<div class='info_url' data-sw-translate>See more at <a href="{{info.contact.url}}">{{info.contact.url}}</a></div>{{/if}}
|
||||
{{#if info.contact.email}}<div class='info_email'><a href="mailto:{{info.contact.email}}?subject={{info.title}}" data-sw-translate>Contact the developer</a></div>{{/if}}
|
||||
{{#if info.contact.email}}<div class='info_email'><a target="_parent" href="mailto:{{info.contact.email}}?subject={{info.title}}" data-sw-translate>Contact the developer</a></div>{{/if}}
|
||||
{{#if info.license}}<div class='info_license'><a href='{{info.license.url}}'>{{info.license.name}}</a></div>{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user