mirror of
https://github.com/unraid/webgui.git
synced 2026-01-17 23:20:02 -06:00
VM settings: fixed Apply button sometimes not working
This commit is contained in:
@@ -293,7 +293,7 @@ $(function(){
|
||||
}
|
||||
var run = true;
|
||||
$("#settingsForm").find('input[type="text"]').each(function(){
|
||||
if ($(this).attr('pattern')) {
|
||||
if ($(this).is(':visible') && $(this).attr('pattern')) {
|
||||
var pattern = new RegExp($(this).attr('pattern'));
|
||||
if (!pattern.test($(this).val())) {$(this).css('color','red'); run = false;}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user