Fixed form validation JS. (#8036)

This commit is contained in:
Zmegolaz
2018-01-05 16:04:47 +01:00
committed by Neil Lathwood
parent d7b4a30acf
commit 5c4b6877b0

View File

@@ -87,8 +87,7 @@ $(document).ready(function() {
var $this = $(this);
var config_id = $this.data("config_id");
var config_value = $this.val();
var required = $this.prop('required');
if (required == false) {
if ($this[0].checkValidity()) {
$.ajax({
type: 'POST',
url: 'ajax_form.php',