dont check the post body text area for as a required field when it's not visible (fro example when using the jsoneditor)

This commit is contained in:
Laurent Lepinay
2015-09-24 11:43:26 +02:00
parent 7e82b3d66a
commit 50a9fc8d79
3 changed files with 3 additions and 3 deletions

2
dist/swagger-ui.js vendored
View File

@@ -31502,7 +31502,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
error_free = false;
}
});
form.find('textarea.required').each(function() {
form.find('textarea.required:visible').each(function() {
$(this).removeClass('error');
if (jQuery.trim($(this).val()) === '') {
$(this).addClass('error');

File diff suppressed because one or more lines are too long

View File

@@ -296,7 +296,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
error_free = false;
}
});
form.find('textarea.required').each(function() {
form.find('textarea.required:visible').each(function() {
$(this).removeClass('error');
if (jQuery.trim($(this).val()) === '') {
$(this).addClass('error');