Docker settings: fix wrong size calculation function

This commit is contained in:
bergware
2023-08-25 22:09:48 +02:00
parent 835f2f1aa7
commit 09042aff3f

View File

@@ -787,7 +787,7 @@ function changeMask(id,val) {
}
if (step==0) step = 256;
if ($(cell).length==0) continue;
var max = $(cell+' option').size();
var max = $(cell+' option').length;
for (var i=0; i < max; i++) if (i%step==0) $(cell+' option:eq('+i+')').removeClass('hide'); else $(cell+' option:eq('+i+')').addClass('hide');
if ($(cell+' option:selected').val()%step!=0) $(cell+' option:selected').removeAttr('selected');
}