diff --git a/dist/swagger-ui.js b/dist/swagger-ui.js
index 1cda398c..75e66179 100644
--- a/dist/swagger-ui.js
+++ b/dist/swagger-ui.js
@@ -475,61 +475,6 @@ this["Handlebars"]["templates"]["content_type"] = Handlebars.template({"1":funct
if (stack1 != null) { buffer += stack1; }
return buffer + "\n";
},"useData":true});
-var BasicAuthButton,
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- __hasProp = {}.hasOwnProperty;
-
-BasicAuthButton = (function(_super) {
- __extends(BasicAuthButton, _super);
-
- function BasicAuthButton() {
- return BasicAuthButton.__super__.constructor.apply(this, arguments);
- }
-
- BasicAuthButton.prototype.initialize = function() {};
-
- BasicAuthButton.prototype.render = function() {
- var template;
- template = this.template();
- $(this.el).html(template(this.model));
- return this;
- };
-
- BasicAuthButton.prototype.events = {
- "click #basic_auth_button": "togglePasswordContainer",
- "click #apply_basic_auth": "applyPassword"
- };
-
- BasicAuthButton.prototype.applyPassword = function() {
- var elem, password, username;
- username = $(".input_username").val();
- password = $(".input_password").val();
- window.authorizations.add(this.model.type, new PasswordAuthorization("basic", username, password));
- window.swaggerUi.load();
- return elem = $('#basic_auth_container').hide();
- };
-
- BasicAuthButton.prototype.togglePasswordContainer = function() {
- var elem;
- if ($('#basic_auth_container').length > 0) {
- elem = $('#basic_auth_container').show();
- if (elem.is(':visible')) {
- return elem.slideUp();
- } else {
- $('.auth_container').hide();
- return elem.show();
- }
- }
- };
-
- BasicAuthButton.prototype.template = function() {
- return Handlebars.templates.basic_auth_button_view;
- };
-
- return BasicAuthButton;
-
-})(Backbone.View);
-
this["Handlebars"]["templates"]["main"] = Handlebars.template({"1":function(depth0,helpers,partials,data) {
var stack1, lambda=this.lambda, escapeExpression=this.escapeExpression, buffer = "
"
+ escapeExpression(lambda(((stack1 = (depth0 != null ? depth0.info : depth0)) != null ? stack1.title : stack1), depth0))
@@ -613,32 +558,58 @@ this["Handlebars"]["templates"]["main"] = Handlebars.template({"1":function(dept
if (stack1 != null) { buffer += stack1; }
return buffer + " \n
\n\n";
},"useData":true});
-var ContentTypeView,
+var BasicAuthButton,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
__hasProp = {}.hasOwnProperty;
-ContentTypeView = (function(_super) {
- __extends(ContentTypeView, _super);
+BasicAuthButton = (function(_super) {
+ __extends(BasicAuthButton, _super);
- function ContentTypeView() {
- return ContentTypeView.__super__.constructor.apply(this, arguments);
+ function BasicAuthButton() {
+ return BasicAuthButton.__super__.constructor.apply(this, arguments);
}
- ContentTypeView.prototype.initialize = function() {};
+ BasicAuthButton.prototype.initialize = function() {};
- ContentTypeView.prototype.render = function() {
+ BasicAuthButton.prototype.render = function() {
var template;
template = this.template();
$(this.el).html(template(this.model));
- $('label[for=contentType]', $(this.el)).text('Response Content Type');
return this;
};
- ContentTypeView.prototype.template = function() {
- return Handlebars.templates.content_type;
+ BasicAuthButton.prototype.events = {
+ "click #basic_auth_button": "togglePasswordContainer",
+ "click #apply_basic_auth": "applyPassword"
};
- return ContentTypeView;
+ BasicAuthButton.prototype.applyPassword = function() {
+ var elem, password, username;
+ username = $(".input_username").val();
+ password = $(".input_password").val();
+ window.authorizations.add(this.model.type, new PasswordAuthorization("basic", username, password));
+ window.swaggerUi.load();
+ return elem = $('#basic_auth_container').hide();
+ };
+
+ BasicAuthButton.prototype.togglePasswordContainer = function() {
+ var elem;
+ if ($('#basic_auth_container').length > 0) {
+ elem = $('#basic_auth_container').show();
+ if (elem.is(':visible')) {
+ return elem.slideUp();
+ } else {
+ $('.auth_container').hide();
+ return elem.show();
+ }
+ }
+ };
+
+ BasicAuthButton.prototype.template = function() {
+ return Handlebars.templates.basic_auth_button_view;
+ };
+
+ return BasicAuthButton;
})(Backbone.View);
@@ -745,68 +716,32 @@ this["Handlebars"]["templates"]["operation"] = Handlebars.template({"1":function
if (stack1 != null) { buffer += stack1; }
return buffer + " \n