From 0b19edf7c27f604781b785a139b4ce2cbfd8d5f3 Mon Sep 17 00:00:00 2001 From: Eric Thompson Date: Thu, 16 Apr 2015 15:59:35 -0500 Subject: [PATCH] Use password input type for password fields --- dist/swagger-ui.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/swagger-ui.js b/dist/swagger-ui.js index 1396eb869c5..6bd9f050056 100644 --- a/dist/swagger-ui.js +++ b/dist/swagger-ui.js @@ -619,10 +619,14 @@ this["Handlebars"]["templates"]["param_required"] = Handlebars.template({"1":fun + escapeExpression(((helper = (helper = helpers['default'] || (depth0 != null ? depth0['default'] : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"default","hash":{},"data":data}) : helper))) + "'/>\n"; },"15":function(depth0,helpers,partials,data) { + type = 'text'; + if (data.root.format === 'password') { + type = 'password'; + } var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression; return " \n"; + + "' placeholder='(required)' type='"+type+"' value=''/>\n"; },"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) { var stack1, helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, buffer = "" + escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper))) @@ -21737,4 +21741,4 @@ SwaggerUi.Views.StatusCodeView = Backbone.View.extend({ } return this; } -});}).call(this); \ No newline at end of file +});}).call(this);