This commit is contained in:
Tony Tam
2015-12-18 12:06:35 -08:00
parent 849d3cffb4
commit 3125a3df24
2 changed files with 6 additions and 4 deletions

4
dist/swagger-ui.js vendored
View File

@@ -274,7 +274,9 @@ Handlebars.registerHelper('renderTextParam', function(param) {
idAtt = ' id=\'' + param.valueId + '\'';
}
defaultValue = defaultValue.replace(/'/g,''');
if (typeof defaultValue === 'string' || defaultValue instanceof String) {
defaultValue = defaultValue.replace(/'/g,''');
}
if(isArray) {
result = '<textarea class=\'body-textarea' + (param.required ? ' required' : '') + '\' name=\'' + param.name + '\'' + idAtt + dataVendorExtensions;

File diff suppressed because one or more lines are too long