mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed form validation JS. (#8036)
This commit is contained in:
@@ -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',
|
||||
|
Reference in New Issue
Block a user